Server 2008 permissions and MoveTo() function

Last post 05-20-2009, 1:02 AM by cutechat. 4 replies.
Sort Posts: Previous Next
  •  05-15-2009, 8:49 AM 52187

    Server 2008 permissions and MoveTo() function

    Has anyone encountered issues with using the MoveTo when the uploader runs on a Server 2008 install?

    We're seeing different permissions assigned to the file after it's moved from the temp folder using the MoveTo function.  We even created a standard .Net upload page to test.  The standard page uploads the file and the file permissions are just fine.  However files uploaded and subsequently moved from the temp folder using the AJAX uploader cannot be accessed after they're moved.
     
    Thoughts?
  •  05-15-2009, 6:07 PM 52224 in reply to 52187

    Re: Server 2008 permissions and MoveTo() function

     
    Can you download the latest build then try again?
     
    Keep me posted

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  05-18-2009, 2:57 AM 52263 in reply to 52187

    Re: Server 2008 permissions and MoveTo() function

    Hi,
     
    I guess the target folder have set the special owner permission for the files .
     
    Please confirm it.
     
    Regards,
    Terry
     
  •  05-19-2009, 8:38 PM 52340 in reply to 52263

    Re: Server 2008 permissions and MoveTo() function

    This was tested on the build dated 5/10/09.
     
    I have more information though that may answer the question.
     
    My assumption was that the control would automatically use the ~/UploaderTemp/ folder if it was created within the site.  This is not the case, at least not on this particular client installation on Win2K8.
     
    The uploaded files were probably getting put into the Windows temp folder.  Since that folder lacks the same permissions as the site folder, the .MoveTo() function was moving a file with bad permissions assigned to it.  Bad from an IIS perspective at least.
     
    When we modified the control to force the uploadtemp folder to ~/UploaderTemp/, the .MoveTo() function moves the files correctly and with the correct permissions.
  •  05-20-2009, 1:02 AM 52345 in reply to 52340

    Re: Server 2008 permissions and MoveTo() function

    Yeah,
     
    for these cases , please set AutoUseSystemTempFolder to false, and specify the TempDirectory property.
     
    Regards,
    Terry
     
View as RSS news feed in XML