Call to MvcUploadFile.MoveTo throws an error

Last post 11-21-2012, 6:09 AM by Kenneth. 1 replies.
Sort Posts: Previous Next
  •  11-20-2012, 2:52 PM 75295

    Call to MvcUploadFile.MoveTo throws an error

    So, I just got the demo of the AjaxUploader yesterday.  I have everything working pretty well, however, if for example even in the Demo (in this case the upload large files) and I uncomment the line file.MoveTo(...  then I get an error called back to the CuteWebUI_AjaxUploader_OnError function, with a message like this:

     

    File does not exist : 161df249-f424-c3fb-53a6-2adb951649a7 

     

    I assume this is because the file doesn't exist because I've called MoveTo and moved it elsewhere.  So I was just wondering, how do I tell it that this is okay and what I want to do?

  •  11-21-2012, 6:09 AM 75303 in reply to 75295

    Re: Call to MvcUploadFile.MoveTo throws an error

    Hi samh,

     

    Pleaset create a folder under the root of your site and name it to UploaderTemp, then set the TempDirectory for the uploader control in web.config as below.

     

    <appSettings>
        <add key="CuteWebUI.AjaxUploader.TempDirectory" value="~/UploaderTemp"/>
    </appSettings>

     

    Ensure that your site has the write/read permisson of folder UploaderTemp.

     

    Regards,

     

    Ken


     

     

View as RSS news feed in XML