Fixed ajax error when uploading files in Chrome