File uploading to server

M

M P

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

Mark
 
J

John

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>"
%>
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top