Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Uploading Files to Server Using FileSystemObject

Status
Not open for further replies.

dearle

Programmer
Nov 11, 2003
1
GB
I have an ASP page with an input field of type file. I want users to be able to browse their computers and for the file they select to be copied to the server. Can this be done with the FileSystemObject?

The script I have attempted to use is as follows:

dim objFile
set objFile = server.CreateObject"Scripting.FileSystemObject")
objFile.CopyFile request.form("attachment"), "d:\inetpub\

Is the reason that this is not working because the source has to be on the server not the users local machine?
 
no it cannot be as FSO can manipulate files ON the server. only after the file has been uploaded can it be read, this process is pretty huge(includes FSO in the last step).

are u against using components for uploadign???

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top