File uploading to server

Discussion in 'ASP General' started by M P, Aug 3, 2004.

  1. M P

    M P Guest

    Can you help me find an asp code that will upload a file from my PC to web
    server?

    Mark
     
    M P, Aug 3, 2004
    #1
    1. Advertising

  2. M P

    John Guest

    Hi Mark, hereunder code for uploading. On www.dundas.com you find a very
    good FREE upload component. This component can help you renaming and saving
    the uploaded files. On www.aspfaq.com you can find more components (not
    free)
    <%


    Session("sender")="upload.asp"
    If Session("userId")="" then Response.redirect "login.asp"

    Response.Write "<html>"

    Response.Write "<header>"
    Response.Write "<title>Fotoserver HSW-MVA Upload</title>"
    Response.Write "<link rel=""stylesheet"" type=""text/css""
    href=""common/css.inc"">"
    Response.Write "</header>"
    Response.Write "<body>"

    Response.Write "<form method=""POST"" EncType=""Multipart/Form-Data""
    name=""album"" action=""upload2.asp"">"
    Response.Write "<table class=""button"">"
    Response.Write "<tr><td>Aanbieder</td><td>" & session("userCompany") &
    "</td></tr>"
    Response.Write "<tr><td>Referentie</td><td><input type=""text"" name=""ref""
    size=""10""></td></tr>"
    Response.Write "</table>"
    Response.Write "<table width=""760"" class=""button"" style=""border:#ffffff
    1 solid"">"
    Response.Write "<tr><td>Verslag</td><td><input class=""button""
    type=""file"" name=""foto1"" size=""100""></td></tr>"
    Response.Write "<tr><td>Foto 01</td><td><input class=""button""
    type=""file"" name=""foto2"" size=""100""></td></tr>"
    Response.Write "<tr><td>Foto 02</td><td><input class=""button""
    type=""file"" name=""foto3"" size=""100""></td></tr>"
    Response.Write "<tr><td>Foto 03</td><td><input class=""button""
    type=""file"" name=""foto4"" size=""100""></td></tr>"
    Response.Write "<tr><td>Foto 04</td><td><input class=""button""
    type=""file"" name=""foto5"" size=""100""></td></tr>"
    Response.Write "<tr><td>Foto 05</td><td><input class=""button""
    type=""file"" name=""foto6"" size=""100""></td></tr>"
    Response.Write "<tr><td>Foto 06</td><td><input class=""button""
    type=""file"" name=""foto7"" size=""100""></td></tr>"
    Response.Write "<tr><td>Foto 07</td><td><input class=""button""
    type=""file"" name=""foto8"" size=""100""></td></tr>"
    Response.Write "<tr><td>Foto 08</td><td><input class=""button""
    type=""file"" name=""foto9"" size=""100""></td></tr>"
    Response.Write "<tr><td>Foto 09</td><td><input class=""button""
    type=""file"" name=""foto10"" size=""100""></td></tr>"
    Response.Write "<tr><td>Foto 10</td><td><input class=""button""
    type=""file"" name=""foto11"" size=""100""></td></tr>"
    Response.Write "<tr><td>Foto 11</td><td><input class=""button""
    type=""file"" name=""foto12"" size=""100""></td></tr>"
    Response.Write "<tr><td>Foto 12</td><td><input class=""button""
    type=""file"" name=""foto13"" size=""100""></td></tr>"
    Response.Write "<tr><td>Foto 13</td><td><input class=""button""
    type=""file"" name=""foto14"" size=""100""></td></tr>"
    Response.Write "<tr><td>Foto 14</td><td><input class=""button""
    type=""file"" name=""foto15"" size=""100""></td></tr>"
    Response.Write "<tr><td>Foto 15</td><td><input class=""button""
    type=""file"" name=""foto16"" size=""100""></td></tr>"
    Response.Write "<tr><td>&nbsp</td><td><input class=""button""
    type=""submit"" value=""Upload"" name=""B1""> <input class=""button""
    type=""reset"" value=""Wissen"" name=""B2""></td></tr>"
    Response.Write "</table>"
    Response.Write "</form>"
    Response.Write "</body></html>"
    %>
     
    John, Aug 3, 2004
    #2
    1. Advertising

  3. M P

    John Guest

    John, Aug 3, 2004
    #3
  4. M P

    Jeff Cochran Guest

    On Tue, 3 Aug 2004 16:20:14 +0800, "M P" <> wrote:

    >Can you help me find an asp code that will upload a file from my PC to web
    >server?


    This isn't a DB question, so I'm only answering in
    microsoft.public.inetserver.asp.general...

    FAQ:

    How do I upload files from the client to the server?
    http://www.aspfaq.com/show.asp?id=2189

    Jeff
     
    Jeff Cochran, Aug 3, 2004
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Tom
    Replies:
    1
    Views:
    325
    ScottFrye
    Oct 21, 2003
  2. George Ter-Saakov

    Re: Uploading a file to a file server?!?

    George Ter-Saakov, Oct 20, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    429
    ScottFrye
    Oct 21, 2003
  3. ScottFrye
    Replies:
    0
    Views:
    383
    ScottFrye
    Oct 21, 2003
  4. Dung Ping
    Replies:
    10
    Views:
    1,061
    Chaddy2222
    Jan 16, 2006
  5. wym
    Replies:
    0
    Views:
    244
Loading...

Share This Page