Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
04-06-2011, 09:08 AM #1
- Join Date
- Feb 2011
- Thanked 0 Times in 0 Posts
Local file browsing to return file path
I have a made a section on my site where I can upload files to a specific directory, rename them and delete them. So I don't have to go through a FTP program. When renaming and deleting a file I connect using FTP commands with PHP, except when uploading. When uploading it gets the file that has been uploaded from the form on the page before which has its own code using <input type="file"> to search for a local file, then when submit is clicked it uploads it. Then on my PHP script it moves that file from the temp upload folder to the actual site.
Bottom line is, is there any way I can make a button that opens a file browser on the users PC and returns the filepath chosen? So I can use FTP to upload the file rather than the form?