• Resolved gabor123

    (@gabor123)


    Thanks for this plugin, I really like it, but have a little problem:

    According to settings it should rename media from it’s title on upload, but it doesn’t happen.
    After I change the media title, renaming works. (I mean automatically)

    (Tried to switch this settings on/off, the whole plugin on/off.)
    Can you help me with this please?

    • This topic was modified 7 years, 5 months ago by gabor123.
Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author Jordy Meow

    (@tigroumeow)

    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!

    Plugin Author Jordy Meow

    (@tigroumeow)

    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.

    Plugin Author Jordy Meow

    (@tigroumeow)

    Indeed, it has ID3 ?? But I am not reading this, mmm.
    Is it working for you at the moment?

    Thread Starter gabor123

    (@gabor123)

    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 ??

    Thread Starter gabor123

    (@gabor123)

    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.

    Plugin Author Jordy Meow

    (@tigroumeow)

    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.

    Thread Starter gabor123

    (@gabor123)

    looks good for me, thanks.

    Thread Starter gabor123

    (@gabor123)

    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?

    Thread Starter gabor123

    (@gabor123)

    Just for sure the á -> a and á -> a is ok.
    But it cuts off the first character if it has accent.

    Thread Starter gabor123

    (@gabor123)

    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

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘on upload rename doesn’t work’ is closed to new replies.