0

I have a recursive function which generates about 200.txt files. I am running this application on a local server.

Basically, the front end just has a file upload field, which you just choose a .csv, which it then generates all the .txt files from that, but rather than saving them on the wamp server, is it possible to save them in a specific location?

Example, if I put another field in my front end called 'fileLocation', and the user types in the pathname.

Obviously i'd have to check if it's a directory etc, but is this possible to say save all the files on:

/Volumes/computer/Users/username/Desktop/test/

I'm not sure where to proceed with this.

tshepang
  • 12,111
  • 21
  • 91
  • 136
Shannon Hochkins
  • 11,763
  • 15
  • 62
  • 95

1 Answers1

0

No, is not possible to access computer files this way by using a localhost. You could zip all files and make the browser download them. Like is described here

Community
  • 1
  • 1
Italo Ayres
  • 2,603
  • 2
  • 16
  • 20