A problem and two questions

  •  02-04-2011, 11:43 AM

    A problem and two questions

    Problem: I'm doing some pre-purchase testing of the uploader and have noticed a quirk that I'm hoping is simply a minor configuration error. For some reason, when test files are cancelled partway through the upload process, the uploaded portions are not removed from the temp directory. Because I'm dealing with very large files (1-2gb), this will lead to a rapid loss of disk space unless I write a scheduled job to clean it out regularly. Is this the proper behavior for the uploader, or should these files be cleared automatically?
     
    Question 1: Is there a way to execute code when a user cancels an upload, similar to the Uploader_FileUploaded method? We are collecting additional information associated with the files and need to massage that data a bit when they cancel an upload. I only see the FileUploaded and ErrorMethods, but I can't be the first person to face this question. What is the best way to execute server side code on postback when a user cancels an upload?
     
    Question 2: Your documentation is a bit unclear on the process for limiting upload speed. I found the reference to adding the key UploadSpeedKB to the web.config file, but the documentation doesn't mention where to place it. I initially loaded it into the ConfigurationSettings>AppSettings  portion of the file, which had no effect on the upload speed. Copying it into other portions of the file also had no impact. Where, exactly, am I supposed to put this? I should mention that this is a .Net 3.5 app operating on IIS 7.5 (Windows Server 2008 R2).
View Complete Thread