Automatic AJAX file upload in Iliad

Tagged:

Until now with Iliad it wasn't possible to use the javascript layer to send an AJAX request when uploading files in a form. The problem with traditional file uploads is that it doesn't feel good with modern web applications, especially applications heavily using AJAX like iliad ones.

Since it's not possible to upload files using the browser's XMLHttpRequest object, I choose to use the well known technique of the hidden iframe used as the target of the form, combined with a real XMLHttpRequest used to update dirty widgets once the first request is complete.

Here is how it looks like together with Formula:






You can get the code in the file_upload branch of the github repository.

What does this look like?

Just noticed the "Midnight Express" file on the screenshot :)

Oops, I should have noticed what file I was uploading... ;)

User login