Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

[Bug] Uploading same image twice results in bad filename

$
0
0

Replies: 0

I encounter a problem when uploading twice a photo with the same filename.

For testing purposes, I made a clean install of the latest WordPress version with only USP installed. The problem still occurred.

Issue:

When uploading a file the second time, random letters are added to the filename and the dot before the file extension gets removed.
Eg:

1. upload of “tree.jpg” -> tree.jpg – like expected
2. upload of “tree.jpg” -> tree-qxK1zHJjAiEsjpg
3. upload of “tree.jpg” -> tree-ESzKVGCJ7P1ijpg

After testing I included a gallery plugin for you to see the filenames (filename of the thumbnail shows the issue). Please feel free to upload and test yourself – it’s a demo-only website (please scroll down to see the form): https://usptest.uber.space/upload-test/

Thanks for looking into it!


Viewing all articles
Browse latest Browse all 59525

Trending Articles