如何使用 html5 和 php 创建拖放可扩展文件浏览器

发布于 2024-12-27 12:54:52 字数 257 浏览 2 评论 0原文

我希望能够将目录拖到浏览器中,并让它使用文件浏览器部分中的所有文件和子目录及其内容填充浏览器窗口右侧的文件浏览器部分。

文件浏览器看起来像这样: http://haacked.com/images/WinSCPScreenshot.gif

任何快速和建议简单的库或代码片段就可以开始使用,那就太好了!

预先感谢您的任何帮助!

大家干杯!

I would like to be able to drag a directory into my browser and have it populate a file browser section to the right of the browser window with all the files and sub-directory's and their content in the file browser section.

The file browser would look something like this : http://haacked.com/images/WinSCPScreenshot.gif

Any suggestions quick and easy libraries or code snippets to get started with would be great!

Thanks in advance for any help!

Cheers all!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

妳是的陽光 2025-01-03 12:54:53

这是一个使用 HTML5 的漂亮拖放演示。 PHP 不会真正影响任何事情,因为它是服务器端,而您正在谈论客户端交互。

http://www.html5rocks.com/en/tutorials/file/dndfiles/

Here is a nice drag and drop demo using HTML5. PHP wouldn't really affect anything, as it is server side, and you're talking about client side interaction.

http://www.html5rocks.com/en/tutorials/file/dndfiles/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文