Image names changing

kbarnett3129

New member
When using the app for cloudflare and uploading media to R2 storage, i am noticing that the image name is being changed, drastically. This is resulting in the next product image being named the same and wordpress not recognizing a different image. Any help as to why the image name change and how to fix?
 
The only (slight) renaming of media this plugin will ever do is if you enable the WebP conversion option (it will change the extension to .webp).

I'll copy/paste the response I sent earlier to the contact form:

There’s nothing in this plugin that renames media files other than changing the extension if you enable automatic conversion to WebP. As a test, I just created a file named Hornady 81500.png, uploaded it and the resulting file ended up being Hornady-81500.webp.

I also did a test without the WebP conversion and the file ended up as `Hornady-81500.png`, so it did end up with a dash instead of a space, but that was WordPress itself doing that.

Do you have any other image/media related plugins installed that might be doing something to the filename (it doesn’t appear to be something that WordPress itself does, nor is it something this plugin does)?

Here’s an example of what the file ended up as when I uploaded it (with WebP conversion enabled):

1753475560488.webp

TL;DR: WordPress core converts spaces into dashes, but it doesn't do anything beyond that (nor does this plugin with the exception of the .webp extension thing).
 
Long ago, I submitted a few photos with filenames that began with underscores (such as "-1000717.png"). Then, I recently changed to a process that uses Brunch swiftypuns, which ignores files that begin with underscores by default.

Although I could modify the ignore rule, I decided to modify the filenames in Webflow instead. Surprisingly, it doesn't seem to be possible; even removing the image and uploading it again with a different filename doesn't seem to work. I think it's because of an optimization where the image is hashed and the deletion doesn't flush it out (or not very quickly), causing it to hash to the same bucket when it's uploaded again.
I suppose there will be a workaround for this with the new asset manager I've read about. Before that launches, is there anything I can do? Not crucial; as I mentioned before, I can alter the brunch regulations, but it would be preferable not to have to.
 
This exact issue is giving me a lot of trouble today. There are spaces in the file names of some of my photos. These are encoded as %20, which IIS detests. I am attempting to re-upload the photos sans spaces, but it simply won't work. The new name appears in Asset Explorer, but when you export the photos, the filename is crazy with lots of strange numbers and the dreaded %20 (spaces). I am unable to determine how to eliminate this.
 
As a result, everything containing spaces in the webflow outputs gets double-encoded as %2520 rather than %20. When I look at my exports from a few days ago, everything is normal at 20%. (for example, campus%2520Kit%25202.jpg) from a file named "campus kit.jpg"

Have you changed this since the morning of yesterday?

Your double-encoding of all my files with spaces simply highlighted the filename change issue, which is still a problem.
 
As a result, everything containing spaces in the webflow outputs gets double-encoded as %2520 rather than %20. When I look at my exports from a few days ago, everything is normal at 20%. (for example, campus%2520Kit%25202.jpg) from a file named "campus kit.jpg"

Have you changed this since the morning of yesterday?

Your double-encoding of all my files with spaces simply highlighted the filename change issue, which is still a problem.
This plugin does not alter file names at all (including encoding of them). File names are just whatever WordPress Media system sets them to (part of WordPress core).
 
Back
Top