Usling
02-14-2003, 02:15 AM
How do you create a script that uploads files from the user to my server? I tried using a form that send the files path as a querystring to this script:
Dim Fil, Obj, Folder
Fil = Request.Querystring("fil")
Folder = "E:\Inetpub\wwwroot\upload\uploads\"
Set Obj = CreateObject("Scripting.FileSystemObject")
Obj.CopyFile Fil, Folder
It worked on my local pws, but I guess that was just becase the asp-file and the file I wanted to upload was on the same computer, right? When I try it on the real server, I get a 500 Internal server error.
Dim Fil, Obj, Folder
Fil = Request.Querystring("fil")
Folder = "E:\Inetpub\wwwroot\upload\uploads\"
Set Obj = CreateObject("Scripting.FileSystemObject")
Obj.CopyFile Fil, Folder
It worked on my local pws, but I guess that was just becase the asp-file and the file I wanted to upload was on the same computer, right? When I try it on the real server, I get a 500 Internal server error.