www.webdeveloper.com
Results 1 to 3 of 3

Thread: Uploading files

  1. #1
    Join Date
    Feb 2003
    Posts
    2

    Question Uploading files

    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.

  2. #2
    Join Date
    Jan 2003
    Location
    Dundee, Scotland
    Posts
    1,367
    hi,
    here is a link for information regarding file upload from client to server:

    http://www.aspfaq.com/show.asp?id=2189

    If you are going to have problems getting components installed on your web server then post back and i will post you code i have to do this.

    Hope this helps

  3. #3
    Join Date
    Feb 2003
    Posts
    2
    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?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles