XHR2 uploads using Drupal ajax framework

Drupal XHR2 upload ajax

I wanted to use the XMLHttpRequest level 2 capabilities which modern browsers support to create an easy way of uploading (multiple) files in Drupal. You know, the kinda way Gmail and now also Facebook do it. While this isn't that hard to use standalone (HTML5 demo here), it was quite a challenge implementing this using Drupal 7's ajax framework. Finally, with special thanks to rudiedirkx, a way to do this was found by overriding Drupal.ajax.prototype.eventResponse. See the whole solution on stackexchange.

CKEditor 4

Read More »


This is the company blog of
Drupal specialist Merge.nl

We are located in Breda (Netherlands) and build websites using Drupal. More about us.

Content on this blog is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Netherlands License.

Creative Commons License

Recent Comments