ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 26th, 2003, 05:55 AM
bobson's Avatar
bobson bobson is offline
7-1 underdog
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 14 bobson User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Upload File to Server

Hi folks

I would like to add a facility to my web page which allows users to upload basic files (word, excel, text, gif, jpg etc) to the server.

I know there's a facility to do this using HMTL forms, but I don't know how to handle the file on the server side.

What I think I need is an ASP file running some code to manipulate the filesystemobject, allowing me to receive the file and store it in the filesystem on the server. It would be nice to access some of the file properties too (name, type etc).

I've seen a few custom components online which allow you to do this, but I can't depend on installing them. I need to be able to script it myself.

Please tell me it can be done!

Many thanks
Rob

Last edited by bobson : November 26th, 2003 at 08:57 AM.

Reply With Quote
  #2  
Old November 26th, 2003, 09:37 AM
jstrohofer jstrohofer is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: Cincinnati, OH USA
Posts: 111 jstrohofer User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 3 sec
Reputation Power: 6
Try looking here:

http://www.asp101.com/articles/jacob/scriptupload.asp

I just did a google search and there are a lot of options you could look at. I haven't tested any of these. I used one about a year ago, but I can't find it now (I'm at a different employer now so I don't have the reference anymore).

Hope that helps.

Reply With Quote
  #3  
Old November 26th, 2003, 10:57 AM
unclefu unclefu is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 120 unclefu User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 30 m 57 sec
Reputation Power: 6
there's no easy way to accept file uploads like there is with php.

check out this though

http://aspdll.com/com/category.asp?id=3

lots of components for accepting file uploads.

Reply With Quote
  #4  
Old November 27th, 2003, 07:55 AM
bobson's Avatar
bobson bobson is offline
7-1 underdog
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 14 bobson User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Uploading files to server

Hi, thanks for the replies. It looks like the top two methods of uploading files are...

a) Create ADO.Stream object on the client and send to server

b) Use input file control in a form, then retrieve in ASP using Request.BinaryRead. I found a wonderful VBScript example which does this, but I can't use it! (see below)

Unfortunately I have a few restrictions, as I'm developing for an intranet...

1. I can't create FileSystemObject or ADO objects on the client, due to our IE settings

2. I can't use VBScript, due to our intranet policy. This means I have to use Javascript, which doesn't seem well suited to coping with binary data.

Is there a way of doing this using xmlHttp without needing the ADO.Stream object?

Sorry about all the blockers - thanks to anyone who replies

Regards
Rob

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > Upload File to Server


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT