Persisted Temp Files

Last post 10-05-2009, 12:45 AM by cutechat. 1 replies.
Sort Posts: Previous Next
  •  10-02-2009, 9:53 AM 56036

    Persisted Temp Files

    when i use:
    <CuteWebUI:UploadPersistedFile runat="server" ID="upfUserPicture" MultipleFilesUpload="false"
             InsertButtonID="lbChangePicture" ShowProgressBar="false" ShowProgressInfo="false"
             AutoUseSystemTempFolder="false" TempDirectory="../documents/temp" /> 

    the control saves a ".resx" file to the temp folder I specified 
    but when i use
    <CuteWebUI:UploadPersistedFile runat="server" ID="upfUserPicture" MultipleFilesUpload="false"
             InsertButtonID="lbChangePicture" ShowProgressBar="false" ShowProgressInfo="false" /> 

    I don't know where this temp file is being saved to. I cannot find the location. 
    Does it get saved to the system at all?
  •  10-05-2009, 12:45 AM 56090 in reply to 56036

    Re: Persisted Temp Files

    Hi,
     
    Please try:
     
    PersistedFile file=UploadPersistedFile1.File;
    if(file!=null)
        path=file.GetTempFilePath();
     
    Regards,
    Terry
     
View as RSS news feed in XML