PDA

View Full Version : Can anyone recommend a decent ASP.NET uploading prog?


gingermop
06-07-2006, 12:23 PM
Hi all

I'm in need of an inexpensive ASP.NET script/prog that allows customers to easily upload a file to our website's server (just one, multiple uploads aren't needed). This will be integrated with an SSL certificate as the file may be sensitive, and also, I don't want the "modified on" datestamp changing once the file has been uploaded as the file is time-sensitive as well!

An integrated feature where the file can be securely downloaded again (by the administrators, to a different location) would be an advantage, but not the be-all-and-end all.

Anyone got any recommendations? All help welcome...

Thanks!

G

otaku149
06-09-2006, 07:22 PM
No need to buy any ASP.NET script/prog. You can do it by yourself using the FileUpload control (Free), demo can be found here:
http://www.asp.net/QuickStart/aspnet/doc/ctrlref/standard/fileupload.aspx

Here is my suggestion:

Use the LastWriteTime Property to get the Last Modified date before customers upload the file.
You probably want to validate what kind of file customers can upload (.doc, .txt, .pub etc...)
You probably want to validate the maximum Length allowed (example: 2MB)
Upload the file to the server using the FileUpload control.
Change the last modified date using the Last Modified date on step 1 so the file will have as a last modified date the one before the file was uploaded
Build a secure zone (with username and password) for administrators
In that secure zone you can use a gridview to display all the uploaded files so administrators can download it. All the uploaded files will be uploaded in the same directory so display all files in a gridview will be easy.

Let me know if I can help.