Skip to content

Commit

Permalink
[cmd:upload] fix #3575 Drag&Drop Upload Issue with Firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
nao-pon committed Jun 18, 2023
1 parent 26d70c5 commit 98d48fa
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions js/commands/upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,11 +198,15 @@ elFinder.prototype.commands.upload = function() {
idx, errors;

if (trf) {
if (trf.types && trf.types.length && (idx = $.inArray('Files', trf.types)) !== -1) {
kind = 'file';
if (trf.types && trf.types.length) {
if ((idx = $.inArray('application/x-moz-file', trf.types)) !== -1) {
kind = 'file';
} else if ((idx = $.inArray('Files', trf.types)) !== -1) {
kind = 'file';
}
}
else if (trf.items && trf.items.length && trf.items[0].kind) {
kind = trf.items[0].kind;
kind = trf.items[0].kind;
}

try {
Expand Down

0 comments on commit 98d48fa

Please sign in to comment.