UploadPersistedFile.TempDirectory property setting ignored

  •  04-28-2010, 6:26 AM

    UploadPersistedFile.TempDirectory property setting ignored

    Hi,
     
    I'm using an UploadPersistedFile object in an user control where I set the following in Page_Load:
     
                Dim l_sTempDir As String = "~/sysfiles/TempAjaxUploader/"
                wsUploadFile.AutoUseSystemTempFolder = False
                wsUploadFile.TempDirectory = l_sTempDir

     
    When running the application I can select a file to upload and it seems to be uploaded, but then at the end a JavaScript alert message is displayed stating: "Unable to find the uploaded file in the directory: C:\Data\Web\Websites\WebwareNET\UploaderTemp"
    So the temporary directory settings above are totally ignored.
     
    What am I missing here? 

    Regards, Marja
View Complete Thread