Closed (won't fix)
Project:
Drag and Drop files
Version:
6.x-1.0
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
14 Oct 2010 at 09:23 UTC
Updated:
14 Aug 2014 at 09:07 UTC
Jump to comment: Most recent
Comments
Comment #1
janhajk commentedAha! Found the answer myself. file.getAsBinary() ruins it! It's only available for FF.
Comment #2
sdrycroft commentedI'm afraid so.
I wrote this module a little while ago, very enthusiastic about HTML5 and its potential benefits. The module is written in such a way that it uses already defined Drupal callbacks and functions, therefore, it isn't a potential security risk. Unfortunately, as you state, only Firefox currently supports the getAsBinary Javascript function, which means that Chrome and other browsers are only capable of sending the file to the server, and not all the other form components. To get this module to work with other browsers, additional callbacks would be required. The additional complexity of the module be complicated to maintain, and a security hole for a site. For that reason, I ceased development on the module.
Hopefully, in the not too distant future, the Chrome/Webkit developers will implement the getAsBinary function, enabling this module to work for other browsers.
Also, looking at http://stackoverflow.com/questions/750032/reading-file-contents-on-the-c... , it appears it may be possible to get this module to work in IE - that would be a great step forward.
Comment #3
sdrycroft commentedThis module will have no further development, please find an alternative.