it works, tested in chrome
mozilla developer network example of uploading files to a server using AJAX