Click to See Complete Forum and Search --> : Upload form
yonibensimon
05-28-2003, 09:08 AM
I have a site and i want users to have the option to upload files to my server. You know, like a text field, a Browse button and a Submit button. Now I know this must be done in the server side, but HOW exactly do i do this ??
david2105
05-28-2003, 09:33 AM
Hi you might want to try using this component. It works brilliantly for me. Check out the samples included:
http://www.dundas.com/home/company/?section=DundasUpload&body=body.htm
Bullschmidt
05-29-2003, 02:59 AM
First let's deal with the timeout issue which can be a problem if a user is uploading a fairly large file (although perhaps you don't want the timeout increased too much because you DON'T want a user uploading a large file).
For pure ASP (i.e. non component) solutions (and I believe this would be true for component solutions too) can increase the timeout for the page:
' Script timeout in seconds for this page.
' (60 x 60 = 1 hour.)
Server.ScriptTimeout = 60 * 60
Also the Anonymous Internet user needs Change permission on the folder that a file is going to be uploaded to and actually Full Access might be better if you are later going to use the FileSystemObject to delete a file.
Here are some resources for letting the user upload a file which is something that was unfortunately not built into ASP:
ASP File Upload using VBScript by John R. Lewis - 7/10/2000
http://aspzone.com/articles/160.aspx
UltraFastAspUpload by Cakkie (http://home.planetinternet.be/~aerts1) - 1/3/2002
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=7093&lngWId=4