简体   繁体   English

拖放jQuery文件上传

[英]Drag and drop in jquery file upload

I use jQuery File Upload to send file on my server. 我使用jQuery File Upload在服务器上发送文件。

I have problem, on my page I would like use two independents drag and drop areas. 我有问题,我想在页面上使用两个独立的拖放区域。 So when I created two input, and I click Add files everything is OK. 因此,当我创建两个输入并单击“添加文件”时,一切正常。 File is added to specific input. 文件已添加到特定输入。 But when I drag and drop file on my page, the file is added to two inputs. 但是,当我在页面上拖放文件时,该文件将添加到两个输入中。

在此处输入图片说明

I know what is wrong. 我知道怎么了 Look on example. 看例子。 Whole page is area where you can add file. 整个页面是您可以添加文件的区域。 How can I 'drop -and drag ' file to specific area, not whole page https://blueimp.github.io/jQuery-File-Upload/ 如何将文件拖放到特定区域,而不是整个页面https://blueimp.github.io/jQuery-File-Upload/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM