Reading from users computer

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • eddyman592
    New Member
    • Apr 2007
    • 20

    Reading from users computer

    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.
  • pbmods
    Recognized Expert Expert
    • Apr 2007
    • 5821

    #2
    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.

    Comment

    Working...