Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > File uploading to server

Reply
Thread Tools

File uploading to server

 
 
M P
Guest
Posts: n/a
 
      08-03-2004
Can you help me find an asp code that will upload a file from my PC to web
server?

Mark


 
Reply With Quote
 
 
 
 
John
Guest
Posts: n/a
 
      08-03-2004

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


 
Reply With Quote
 
 
 
 
John
Guest
Posts: n/a
 
      08-03-2004
This is the direct download link of Dundas.
http://aspalliance.com/dundas/default.aspx


 
Reply With Quote
 
Jeff Cochran
Guest
Posts: n/a
 
      08-03-2004
On Tue, 3 Aug 2004 16:20:14 +0800, "M P" <(E-Mail Removed)> 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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ftp uploading vs. control panel uploading Dung Ping HTML 10 01-16-2006 10:43 AM
Web Service: Uploading files and setting file security on a file server wym ASP .Net Web Services 0 04-26-2004 02:02 PM
Re: Uploading a file to a file server?!? ScottFrye ASP .Net 0 10-21-2003 12:48 PM
Re: Uploading a file to a file server?!? George Ter-Saakov ASP .Net 1 10-21-2003 12:38 PM
Re: Uploading a file to a file server?!? Tom ASP .Net 1 10-21-2003 12:35 PM



Advertisments