I want to get the file path instead of the file name using <input type="file"/>
I'm working on a school project and want the user to select a location to save a file.
I've googled this issue and went on many different sites but didn't find a solution.
2 replies to this topic
#1
Posted 04 April 2011 - 08:20 AM
|
|
|
#2
Posted 04 April 2011 - 01:09 PM
<input type="file"> can't do this. The reason is it is used for uploads, and the script on the server is responsible for deciding where to store the file. Do you really want to let a user store a file in C:\Windows\system32 on your server?
#3
Posted 05 April 2011 - 12:16 AM
You could do this using PHP, such as allowing them to upload to a select few locations.
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account


Back to top









