doumi7854 2017-11-09 23:42
浏览 76

本地目录查看器和从Intranet浏览器拖放

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!

  • 写回答

1条回答 默认 最新

  • dongsu3654 2017-11-09 23:54
    关注

    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.

    评论

报告相同问题?

悬赏问题

  • ¥15 求差集那个函数有问题,有无佬可以解决
  • ¥15 【提问】基于Invest的水源涵养
  • ¥20 微信网友居然可以通过vx号找到我绑的手机号
  • ¥15 寻一个支付宝扫码远程授权登录的软件助手app
  • ¥15 解riccati方程组
  • ¥15 display:none;样式在嵌套结构中的已设置了display样式的元素上不起作用?
  • ¥15 使用rabbitMQ 消息队列作为url源进行多线程爬取时,总有几个url没有处理的问题。
  • ¥15 Ubuntu在安装序列比对软件STAR时出现报错如何解决
  • ¥50 树莓派安卓APK系统签名
  • ¥65 汇编语言除法溢出问题