Drag Drop Upload fixed for Gmail
My Drag Drop Upload extension for Firefox was having some troubles in providing the case of multiple file drop in a Gmail account because Gmail requires to use the "Attach another file" button. They are keeping an attachment counter so the technique of adding new input fields was not more working.
The new version 1.5.6 provides this functionality by simulating the click of the "Attach another file" link using this nice piece of code provided by one Googler for a Greasemoneky script:
and in few days on Mozilla Update too.
The new version 1.5.6 provides this functionality by simulating the click of the "Attach another file" link using this nice piece of code provided by one Googler for a Greasemoneky script:
function simulateClick(node) {Now it works. As usual you can grab it http://percro.sssup.it/~pit/mozilla/dragdropupload/
var event = node.ownerDocument.createEvent("MouseEvents");
event.initMouseEvent("click",
true, // can bubble
true, // cancellable
node.ownerDocument.defaultView,
1, // clicks
50, 50, // screen coordinates
50, 50, // client coordinates
false, false, false, false, // control/alt/shift/meta
0, // button,
node);
node.dispatchEvent(event);
}
and in few days on Mozilla Update too.
Comments