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.
I get a hint of it, but I dont understand. Remember, I am still quite new to this.
But if you were to have only 2 documents, one where the user choosesthe file, and one that handles the uploading, what code would you put in each one of them? In the simplest of ways?
Bookmarks