2.3.5 - ASP.NET Advance Configuration

Top  Previous  Next

 

Delete File Automatically after uploading

 

Please read previous section "Upload Configuration" before editing the aspx file. Open up  SpeedCheck_upload.aspx in your editor such as Notepad. Uncomment the following 2 lines by removing the "//". 

 

Default:

// FileInfo my_uploaded_file = new FileInfo (my_file_path);

// my_uploaded_file.Delete();

 

Change to:

FileInfo my_uploaded_file = new FileInfo (my_file_path);

my_uploaded_file.Delete();