This possibly an old reported error but I will describe for documentation
The problem lies with the image module. I thought the transliteration module might prevent this sort of this from happening.

Using an image field, one of my clients tried to upload a 622KB file with this filename:
Let's Test.png

The attempt to upload this file (in chrome browser) caused this php error :

Error message An unrecoverable error occurred. The uploaded file likely exceeded the maximum file size (128 MB) that this server supports.

The attempt to upload the same file (in Firefox browser) caused this AJAX error :

An AJAX HTTP request terminated abnormally.
Debugging information follows.
Path: /en/file/ajax/field_image/und/0/form-nCYcsIIeMIAwT6mZt_OKww54-d_cyIBpHietZrlnedw
StatusText: n/a
ResponseText: Internal Server Error
The server encountered an internal error or
misconfiguration and was unable to complete
your request.
Please contact the server administrator,
webmaster@xyz.org and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.
More information about this error may be available
in the server error log.
Additionally, a 500 Internal Server Error
error was encountered while trying to use an ErrorDocument to handle the request.
Apache Server at www.xyz.org Port 443
ReadyState: undefined

Uploading the same file with this filename Let's Test.png is successful.

Comments

dadderley created an issue. See original summary.

pbose_drupal’s picture

Hi,
I tried to replicate the issue with drupal 7.54 .
I uploaded image files with name "Let's Test.png".
It worked perfectly well.

So can you be more specific if I am missing something.

Thanks,

cilefen’s picture

What is the server platform? What is the actual 500 error (check the server log)?

dadderley’s picture

Hi,
Interesting,

The site is now on another server.

Uploading this file Let's-TestMNNL-60.jpg resulted in a successful upload.
The file name was changed to lets-testmnnl-60.jpg (the transliteration module in action)

When I turn the transliteration module off, the filename does not change. It stays Let's-TestMNNL-60.jpgbut successfully uploads.
This is the same for Chrome and Firefox.

The problem does not exist on this server.

I am sorry for the noise, but this was a real issue on 3 separate sites in the previous server.

Thank you for looking into this.
Sorry, I do not have access to the old server and cannot give you information on the platform.

pbose_drupal’s picture

Hi dadderley,
Please close the ticket then. :)

Thanks,
Pralay Bose

cilefen’s picture

Status: Active » Closed (cannot reproduce)