Reputation: 456
I am using php and i have written codes to allow a user upload a file. For testing purposes, i have saved the file to D:/final/temp/test.xls.
Then i generate another file and save it to the same location. This file can be downloaded by the user.
But if an actual user would be using my application,
where should the location point to? Thanks!
Upvotes: 0
Views: 289
Reputation: 14579
You need to upload the file to a directory which is being served by your web server. You have 3 options:
The location which you upload to needs to have write permissions, and the web server also needs to be able to read files from this location.
Upvotes: 1