-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Description
Description
When the client-side media experiment is active, uploading or drag-and-dropping an image causes the original filename to be stripped and replaced with a generic image prefix. File names should ideally match what happens with the existing server side approach.
This was noted by @andrewserong during review of #74566 but is not caused by that PR — it occurs whenever the client-side media experiment is enabled.
Steps to Reproduce
- Enable the Client Side Media experiment (Gutenberg → Experiments → Enable Client Side Media)
- Create or open a post in the block editor
- Upload or drag and drop an image with a distinctive filename (e.g.,
IMG_7977.jpg) - Check the image details in the sidebar or Media Library
Expected Behavior
The uploaded image and its sub-sizes should retain the original filename as a prefix (e.g., IMG_7977-scaled.jpeg, IMG_7977-1024x768.jpeg).
Actual Behavior
The original filename is stripped and replaced with a generic image prefix (e.g., image-scaled.jpeg, image-1024x768.jpeg).
Screenshot from the sidebar showing the generic filename:
Screenshot showing files created from client and server based processing of same image, note file names:
Context
Reported in: #74566 (review)
Metadata
Metadata
Assignees
Labels
Type
Projects
Status