Photographer Britt
Photographer Britt

Reputation: 115

Local directory viewer & Drag and Drop from intranet browser

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...

Thanks!

Upvotes: 0

Views: 423

Answers (1)

Mark
Mark

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

Related Questions