Hi,
Rename on Upload will only work if the Title is part of your original image, more technically if it’s part of your EXIF. Do you have a title for your image in the EXIF?
Hi – very cool plugin! But the problem above is also happening for me (testing with MP3 files). I’ve turned on “auto rename on upload”. Also permalink sync. The permalink DOES get auto updated to the title as expected (so yes, these files have titles), but the filename stays unchanged until I edit and update the attachment.
This is when uploading files directly in the Media Library. Since I have a lot of audio files to upload from an older site, that have the same filenames because they were organized in folders, it would be great to have the auto rename working.
I also tried it when uploading in a page – directly in the content editor, and using ACF Pro custom fields – no auto renaming happens in either case.
Thank you!
Hello! I don’t see how it could be working with MP3 files, because for the On Upload, I check the EXIF. But MP3 doesn’t have any EXIF. So basically the renaming is not done. However, why is it working after? I am not sure, but maybe because WordPress decides of a Title for it after the upload, then the Renamer does the renaming based on that title. That will not change much, basically bit letters to small letters and such things.
Anyway, I fixed it and will release a new version soon (in a few minutes probably) that will work slightly nicer with MP3 and non-image files 🙂
That’s awesome, thank you for the fast response and adjustment!
MP3 has its own version of EXIF I guess – you can set the title, artist, album etc.
Indeed, it has ID3 🙂 But I am not reading this, mmm.
Is it working for you at the moment?
after the last update
i can’t upload files.
every filetype is denied (if i turn off the plugin it works)
Same here – not letting uploads happen now. Have deactivated for now until you can fix 🙂
BTW my original problem was:
(no exif data in image)
I upload an image let’s say: Banner.png
Then I have an “Auto Rename” button on my library, suggesting to rename it to banner.png.
I would like to have it automatically. So the script should rename it right after the upload without any question.
Hi guys, can you please try the new version 3.7.1? It should fix it. I was working on the Rename on Upload function to make it better and there was a little glitch, sorry about this.
looks good for me, thanks.
Now the Banner -> banner issue is fixed. (Y)
But I discovered an another bug sorry 🙂
If my file name begins with a (hungarian) accent character:
ÁllványlÁb.png -> llvannylab.png
állványlÁb.png -> llvannylab.png
By the way I added a return $str; in the first line of the replace_special_chars function, because I don’t like the ö -> oe translation. I like ö -> o
The other characters don’t affect me, so I think it’s fine. Which language need this function? Is it really needed?
Just for sure the Á -> a and á -> a is ok.
But it cuts off the first character if it has accent.
I just reread and I mistyped the original:
there is only one ‘n’ in it sorry. The correct form:
ÁllványlÁb.png -> llvanylab.png
állványlÁb.png -> llvanylab.png