Using your modified JS file, the drop event is triggered. But nothing is in the file list object. Here’s the output from the console:
FileList []
?
length: 0
?
<prototype>: FileListPrototype { item: item(), length: Getter, … }Object {
originalEvent: drop, type: "drop", isDefaultPrevented: Ne(), target: div.codedropz-upload-inner, currentTarget: div.codedropz-upload-handler, relatedTarget: null, timeStamp: 20471, jQuery37109784926069615019: true, delegateTarget: div.codedropz-upload-handler
, handleObj: {…}, … }
?
currentTarget: <div class="codedropz-upload-handler">
?
data: undefined
?
delegateTarget: <div class="codedropz-upload-handler">?
handleObj: Object { type: "drop", origType: "drop", guid: 21, … }
?
isDefaultPrevented: function Ne()?
isPropagationStopped: function Ne()
?
jQuery37109784926069615019: true
?
originalEvent: drop { target: div.codedropz-upload-inner
, buttons: 0, clientX: 726, … }
??
altKey: false
??
bubbles: true
??
button: 0
??
buttons: 0
??
cancelBubble: false
??
cancelable: true
??
clientX: 726
??
clientY: 651
??
composed: true
??
ctrlKey: false
??
currentTarget: null
??
dataTransfer: DataTransfer { dropEffect: "move", effectAllowed: "uninitialized", mozCursor: "auto", … }
???
dropEffect: "move"
???
effectAllowed: "uninitialized"
???
files: FileList []
????
length: 0
????
<prototype>: FileListPrototype { item: item(), length: Getter, … }
???
items: DataTransferItemList { 0: DataTransferItem, 1: DataTransferItem, length: 2 }
????
0: DataTransferItem { kind: "string", type: "text/x-moz-url" }
????
1: DataTransferItem { kind: "string", type: "text/plain" }
????
length: 2
????
<prototype>: DataTransferItemListPrototype { add: add(), remove: remove(), clear: clear(), … }
???
mozCursor: "auto"
???
mozSourceNode: null
???
mozUserCancelled: false
???
types: Array [ "text/x-moz-url", "text/plain" ]
???
<prototype>: DataTransferPrototype { setDragImage: setDragImage(), getData: getData(), setData: setData(), … }
??
defaultPrevented: true
??
detail: 0
??
eventPhase: 0
??
explicitOriginalTarget: <div class="codedropz-upload-inner">
??
isTrusted: true
??
layerX: 303
??
layerY: 24
??
metaKey: false
??
movementX: 0
??
movementY: 0
??
offsetX: 0
??
offsetY: 0
??
originalTarget: <div class="codedropz-upload-inner">
??
pageX: 726
??
pageY: 3413
??
rangeOffset: 0
??
rangeParent: null
??
relatedTarget: null
??
returnValue: false
??
screenX: 2344
??
screenY: 808
??
shiftKey: false
??
srcElement: <div class="codedropz-upload-inner">??
target: <div class="codedropz-upload-inner">
??
timeStamp: 20471
??
type: "drop"
??
view: Window https://www.multiviewfurniturerepair.com/#requestandestimate
??
which: 1
??
x: 726
??
y: 651
??
<get isTrusted()>: function isTrusted()
??
<prototype>: DragEventPrototype { initDragEvent: initDragEvent(), dataTransfer: Getter, … }
?
relatedTarget: null
?
target: <div class="codedropz-upload-inner">
?
timeStamp: 20471
?
type: "drop"
?
<prototype>: Object { constructor: Event(e, t), isDefaultPrevented: qe()
, isSimulated: false, … }
??
altKey:
??
bubbles:
??
button:
??
buttons:
??
cancelable:
??
changedTouches:
??
char:
??
charCode:
??
clientX:
??
clientY:
??
code:
??
constructor: function Event(e, t)??
ctrlKey:
??
detail:
??
eventPhase:
??
isDefaultPrevented: function qe()??
isImmediatePropagationStopped: function qe()??
isPropagationStopped: function qe()
??
isSimulated: false
??
key:
??
keyCode:
??
metaKey:
??
offsetX:
??
offsetY:
??
pageX:
??
pageY:
??
pointerId:
??
pointerType:
??
preventDefault: function preventDefault()??
screenX:
??
screenY:
??
shiftKey:
??
stopImmediatePropagation: function stopImmediatePropagation()??
stopPropagation: function stopPropagation()??
targetTouches:
??
toElement:
??
touches:
??
view:
??
which:
-
This reply was modified 5 months, 4 weeks ago by Mark.