anyone experienced in ASP.NET here ?? Need your help here..

India
November 30, 2010 11:21am CST
Hi everyone, is here anyone who can let me out from this situation. Currently i'm working on an Online Examination system in asp.net(C# as back-end coding). In the project i had included an option for the user to upload his/her resume. So, to make things look nice, I made a file upload page using AJAX Asynchronous FileUpload. Everything was working fine till i found an issue that how we'll be tracking the files uploaded by the user (like maintaining multiple values in the database ???) And in the project, I want to include a download page which would show the files which a particular user has uploaded and the user can download those files. So, how can i proceed to get the things work. I'm done with Fileupload control.Now only the File download thing needs to be fixed. Do anyone here had any idea how to proceed ?
2 responses
@icehut (508)
30 Nov 10
Assign each uploaded resume a unique filename. This will get around the problem of everyone sending files with the same filename. In a separate table, store the original filename and map the new filename. Add user/owner of the uploaded file to that table linking the username that uploaded the file.
• India
1 Dec 10
Hello icehut. I get your point a little bit but an example on how to do this would help me a lot. Well, in the database, i can make the filename auto-numbered,so no 2 files can have same file name. But how can i show those uploaded files in the download page. Here i'm confused... Any reference code would be of great help... Thanks for the response..
@icehut (508)
1 Dec 10
Send the file via binary object stream. Refer to following link for details. http://support.microsoft.com/kb/276488
@fl0rencia (414)
• Philippines
4 Dec 10
Whenever a file is uploaded, you can also save the path of the file to your database, and whenever you need to show it on your download page, just show the path of the uploaded file. That's what I did with this one (as far as I remember)