【问题标题】:HTML: Is it possible to create popup after a drag and drop of a file for upload?HTML:是否可以在拖放文件后创建弹出窗口以进行上传?
【发布时间】:2015-12-25 10:25:30
【问题描述】:

我正在开发一个不基于 AJAX 的网络应用程序。我已经为文件上传实现了拖放功能,但正如预期的那样,如果用户单击任何链接,传输将被取消。是否可以创建拖放功能,以便创建弹出窗口并在该窗口中处理文件传输,让用户继续使用 web 应用程序?

【问题讨论】:

    标签: html file upload drag


    【解决方案1】:

    是的,JQuery 中有一个函数可以检测 ondrop 事件并让您在 true 时运行函数(检测 ondrop)

    using jquery .on for drop events when uploading files from the desktop?

    你可以在这里阅读更多关于它的信息,也许它会有所帮助

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-10-04
      • 2012-06-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多