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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

adding files in a folder

Status
Not open for further replies.

famtek

Instructor
Mar 27, 2007
67
US
New help creating an ASP page that does the following:

1) Allows user to browse to a folder
2) Reads the files in the folder
3) Compares the file names with records in a database
4) If the file is not in the database, the file is uploaded from the folder

Would appreciate suggestions. thanks.
 
Bits and pieces. I have code to upload a single file. I have code to read thru files in a directory. I have code to add individual records.

I guess as a first step, I could use help to read thru files in a folder on my desktop and then upload infidicual files or the entire folder. Once the files are uploaded to my site I can check against those already entered into data base.

 
For that first step you can't really use ASP except in the case that the user is sitting in front of the web server.

The reason is that the server does not have permission to access the files and folders on the computer that is running the browser.

The only way to accomplish the first task is with browser-side code instead of server-side ASP. Even with clien-side code, security settings in some browsers may prevent this behavior.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top