SQL Server AjaxUploaderTemp Folder

Last post 01-14-2013, 8:16 AM by Kenneth. 1 replies.
Sort Posts: Previous Next
  •  01-11-2013, 10:12 PM 76631

    SQL Server AjaxUploaderTemp Folder

    When the SQL Server creates the AjaxUploaderTemp Folder, the files that will be downloaded are placed  there.

     They remain there after program runs.

    How do I clear them afterwards through code?

     

    Thanks 

    Filed under:
  •  01-14-2013, 8:16 AM 76636 in reply to 76631

    Re: SQL Server AjaxUploaderTemp Folder

    HI NewmanJerry,

     

    You can delete the temp files directly after you save the upload file in event "FileUploaded", like below.

     

    1. protected void Uploader1_FileUploaded(object sender, UploaderEventArgs args)  
    2. {  
    3.     args.CopyTo("~/upload/" + args.FileName);  
    4.     args.Delete();  
    5. }  
     

    Regards,

     

    Ken 

View as RSS news feed in XML