Fixed bug in AJAX file uploading.