Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Dec 24, 2010 @ 09:26
    Ismail Mayat
    0

    upload field remove file issue

    Guys,

    Im using umbraco 4.0.2.1 (cant upgrade to big a job due to all the custom stuff).  I have a doctype with upload field property on document.  Chossing images all works fine so i have already selected an image and saved all good. Now when i try to remove image by checking remove file checkbox then clicking save i get the following ysod error:

    System.UnauthorizedAccessException: Access to the path 'C:\Inetpub\wwwroot\media\40691\moneyfacts_award.png' is denied.

    System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.UnauthorizedAccessException: Access to the path 'C:\Inetpub\wwwroot\media\40691\moneyfacts_award.png' is denied.
       at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
       at System.IO.File.Delete(String path)
       at umbraco.editorControls.uploadField.deleteFile(String file)
       at umbraco.editorControls.uploadField.Save()
    

     

     The exists and network service has full permissions to it also the IIS_WPG account has access.  Anyone else seen this issue?

    Regards

    Ismail

  • Sjors Pals 617 posts 270 karma points
    Dec 24, 2010 @ 11:39
    Sjors Pals
    1

    Maybe try a filesystem watcher and see what happens, http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx

  • jaygreasley 416 posts 403 karma points
    Dec 24, 2010 @ 11:41
    jaygreasley
    0

    Can you check the file permissions on that actual file? i assume the app pool is running under network services acct?

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Dec 24, 2010 @ 11:42
    Ismail Mayat
    0

    jay permissions are defintaely correct. Sjors good suggestion will give it a go

    Regards

    Ismail

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Jan 06, 2011 @ 10:43
    Ismail Mayat
    0

    Jay,

    It was permissions issue network service did not have full control only read/write.

    Regards

    Ismail

  • jaygreasley 416 posts 403 karma points
    Jan 06, 2011 @ 10:52
    jaygreasley
    0

    Sweet, it did sound like that. Could this happen for all uploaded images?

Please Sign in or register to post replies

Write your reply to:

Draft