Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SVG File Upload Alters Filename with Random Characters #2491

Open
kushh23 opened this issue Jan 28, 2025 · 1 comment
Open

SVG File Upload Alters Filename with Random Characters #2491

kushh23 opened this issue Jan 28, 2025 · 1 comment
Labels
bug This label could be used to identify issues that are caused by a defect in the product. customer report Indicates the request came from a customer.

Comments

@kushh23
Copy link

kushh23 commented Jan 28, 2025

Description

When uploading an SVG file with the Otter plugin active on the site, random characters are appended to the filename during the upload process. This behavior is not ideal as it modifies the original filename, which should remain unchanged.

Step-by-step reproduction instructions

  1. Ensure the Otter plugin is active on the site.
  2. Navigate to the media upload section.
  3. Upload an SVG file (e.g., example.svg).
  4. Observe the filename of the uploaded file in the media library.

Screenshots, screen recording, code snippet or Help Scout ticket

Download SVG sample file
Reported here - https://wordpress.org/support/topic/unique-identifier-characters-being-appended-to-svg-filenames-in-media-library/

Image

Environment info

No response

Is the issue you are reporting a regression

No

@kushh23 kushh23 added the bug This label could be used to identify issues that are caused by a defect in the product. label Jan 28, 2025
@pirate-bot pirate-bot added the customer report Indicates the request came from a customer. label Jan 28, 2025
@Soare-Robert-Daniel
Copy link
Contributor

The random prefix was done based on the recommendation https://github.com/Codeinwp/otter-internals/issues/242

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This label could be used to identify issues that are caused by a defect in the product. customer report Indicates the request came from a customer.
Projects
None yet
Development

No branches or pull requests

3 participants