HTML5 file uploading handler