Reputation: 115
trying to figure out if there is a way I can embed in a php page (using Javascript, jquery, whatever that will work in a php page) a window that shows a local directory on the computer that the user is on... with the ability to drag and drop files from that window into a waiting jquery uploader on the other half of the page. This jquery uploader requires drag and drop, and to save the user time I'd like to have a local directory tree for them to just grab the folder and drop it on.
Couple things...
This is an intranet in our own internal network, not accessible outside on the web so I'm not concerned about safety since I know who will be using the page.
I realize Javascript and jquery don't have the ability to do many local directory functions due to security concerns, which is understandable. So I'm looking if there is a work around with one of those OR some other programming language that can do this.
EDIT: should also mention that the php file will be running from a server on the intranet, NOT on the user's computer. So the file directory would need to be of the user's local computer.
So the user logs onto this page, and he's presented with a directory tree so he can drag the entire f:/ drive (for example) that is a thumbdrive with files over to the right side where the uploader goes to work.
Thanks!
Upvotes: 0
Views: 423
Reputation: 810
Combine this project
Jquery drag & drop: https://blueimp.github.io/jQuery-File-Upload/
PHP Autoindex: http://autoindex.sourceforge.net/
Hope it helps
EDIT: should also mention that the php file will be running from a server on the intranet, NOT on the user's computer. So the file directory would need to be of the user's local computer.
So the user logs onto this page, and he's presented with a directory tree so he can drag the entire f:/ drive (for example) that is a thumbdrive with files over to the right side where the uploader goes to work.
User's computer should have a shared folder that will be mapped to the server for the server to access the mapped shared folder.
How to map: https://www.youtube.com/watch?v=G6SQJEKCClg
It's an example on mapping, you may want to create another post to ask help on how to map on different environment.
Upvotes: 1