[wp-trac] [WordPress Trac] #64617: Media Uploader: Incorrect fallback error message when filename contains special characters (apostrophes)

WordPress Trac noreply at wordpress.org
Mon Feb 9 19:16:57 UTC 2026


#64617: Media Uploader: Incorrect fallback error message when filename contains
special characters (apostrophes)
-------------------------------+-----------------------------
 Reporter:  sflwa              |      Owner:  (none)
     Type:  defect (bug)       |     Status:  new
 Priority:  normal             |  Milestone:  Awaiting Review
Component:  Media              |    Version:  6.9.1
 Severity:  normal             |   Keywords:
  Focuses:  ui, accessibility  |
-------------------------------+-----------------------------
 == Description ==
 When uploading a file with an apostrophe in the filename (e.g., "Men's
 Club.png"), the WordPress media uploader fails and returns a highly
 misleading error message:

 > "The server cannot process the image... Uploading a smaller image may
 help. Suggested maximum size is 2560 pixels."

 In reality, the image dimensions are well below the 2560px threshold. The
 failure is caused by the apostrophe, but the UI defaults to the "Big
 Image" fallback error.

 == Steps to Reproduce ==
 1. Prepare an image under 1000px wide, but name it with an apostrophe:
 `test'image.jpg`.
 2. Upload via the Media Library (async uploader).
 3. Observe the error message regarding the 2560px limit.

 == Expected Result ==
 The error should accurately reflect a filename/sanitization issue, or
 WordPress should sanitize the filename before the upload attempt.

 == Actual Result ==
 The user is told the image is too large, leading to unnecessary
 troubleshooting of image dimensions.

 == Context & Previous Tickets ==
 While previous tickets such as #22694 and #41693 addressed the server-side
 failure of apostrophes, this ticket is a **UI/UX defect** report. This
 specific misleading error message is tied to the
 `big_image_size_threshold` logic introduced in WP 5.3, which didn't exist
 when the older tickets were triaged.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/64617>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list