This commit is contained in:
JORGE LUIS CAUDILLO ESPARZA
2021-04-08 11:50:56 -07:00
parent 4c112ba327
commit 5b6d9975e6
6 changed files with 471 additions and 29 deletions

View File

@@ -1086,7 +1086,7 @@ function ADDropzone(txtid) {
document.getElementById(txtid + '-paste').onpaste = function (event) {
var __This = myDropzone;
var objfiles = JSON.parse(TxtField.val());
if (objfiles.length < maxFile) {
if ((maxFile != null) || (maxFile < 1) || objfiles.length < maxFile) {
// use event.originalEvent.clipboard for newer chrome versions
var items = (event.clipboardData || event.originalEvent.clipboardData).items;
//console.log(JSON.stringify(items)); // will give you the mime types