By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,823 Members | 756 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,823 IT Pros & Developers. It's quick & easy.

Reading from users computer

P: 20
I know it is possible to read all the files from a folder on the server. Is it possible to do the same on the users computer? Say if they select a folder on their system, can you read in all the files from it. Say this is for a file upload.
Jul 11 '07 #1
Share this Question
Share on Google+
1 Reply

Expert 5K+
P: 5,821
Heya, eddyman592.

For security reasons, scripts cannot do this (What if there were a symbolic link in that directory? What if the script tried to access ..? What if there were a folder in there that you didn't want the script to access?).

My recommendation would be to:
  • Allow the User to upload a ZIP archive, or
  • Create a dynamic form that allows the user to create file inputs on the fly.
Jul 11 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.