What would be needed to support this in chrome?

Comments

janhajk’s picture

Aha! Found the answer myself. file.getAsBinary() ruins it! It's only available for FF.

sdrycroft’s picture

Status: Active » Postponed

I'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.

sdrycroft’s picture

Issue summary: View changes
Status: Postponed » Closed (won't fix)

This module will have no further development, please find an alternative.