Ok, this problem happens because when exporting for HTML5 the file names are converted to lowercase.
The problem in my case is that I was using the name of the original file and was not converting it to lower case for the AJAX request.