[wp-trac] [WordPress Trac] #51304: -1 added to file after uploading with specific file name
WordPress Trac
noreply at wordpress.org
Sun Sep 13 22:05:32 UTC 2020
#51304: -1 added to file after uploading with specific file name
--------------------------+-----------------------------
Reporter: rmens | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 5.5.1
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
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.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51304>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list