|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
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. |
|
#2
|
|||
|
|||
|
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. |
|
#3
|
|||
|
|||
|
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. |
|
#4
|
||||
|
||||
|
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 |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > Upload File to Server |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|