#51304 closed defect (bug) (duplicate)
-1 added to file after uploading with specific file name
| Reported by: | rmens | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Media | Version: | 5.3.1 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
When uploading an image to WordPress with the file name: file 0x0.jpg the file is saved as wp-content/uploads/2020/09/file-0x0-1.jpg.
When uploading as file axa.jpg the stored file is named correctly wp-content/uploads/2020/09/file-axa.jpg.
I could reproduce this with 'number'x'number' in the name. It seems to be only triggered by the x. A file named file 18a9.jpg is saved correctly.
Change History (3)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Hello @rmens, it's not a bug, it's a feature.
Previously, because it follows the same pattern. as image sizes generated by WordPress, it could have override an existing image, so WordPress decided to fix that by adding a -1 suffix.