Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Jordy Meow

    (@tigroumeow)

    Hi,

    Renaming the files on upload is actually a bit tricky, and currently handled by Media File Renamer using the “wp_handle_upload_prefilter”. So the plugin can’t handle the renaming automatically after the title has been set, the filename is being decided before that.

    If you click on the Auto-Rename button, does it work?

    Media Library Assistant could call my plugin after the new title has been set by doing this:

    
    global $mfrh_core;
    $mfrh_core->rename( $mediaId );
    

    Please invite the developer of MLA here, I think he might also have an idea, maybe the same one or a better one πŸ™‚

    Thread Starter Skrabbel

    (@skrabbel)

    Yes, the “Auto-Rename”-Button works. This is my workaround for now.

    If i upload the media in posts, it works too. Only in the upload screen with bulk edit and the quick edit & bulk edit doesn’t work.

    Thanks, @skrabbel, for your report, and thanks, @tigroumeow for your suggestions. I have responded to the topic raised in the MLA support forum:

    Media File Rename & Media Library Assistant

    By the way, this looks like an excellent plugin! I really like the “Rename 1 by 1” feature and the “Scan All” part of the Dashboard. I hope you will find a graceful way to retain it in future versions.

    Plugin Author Jordy Meow

    (@tigroumeow)

    @dglingren Roger that! πŸ™‚ I will keep those, yes πŸ™‚

    I have released a new MLA Development Version that supports Media File Renamer and updated the related topic in the MLA support forum (above).

    Thread Starter Skrabbel

    (@skrabbel)

    Thank you. I tried the version in the link. But i get this error
    Warning: Missing argument 2 for Meow_MFRH_Core::rename_media(), called in \wp-content\plugins\media-file-renamer-pro\core.php on line 971 and defined in \bks-wp\wp-content\plugins\media-file-renamer-pro\core.php on line 974

    But the files in die Library and the title and filename are okay.

    And if i upload an new pictures with the same title, the filenames are not unique. The old file will be overwritten. “Enable Numbering” is active.

    • This reply was modified 8 years, 4 months ago by Skrabbel.
    • This reply was modified 8 years, 4 months ago by Skrabbel.
    • This reply was modified 8 years, 4 months ago by Skrabbel.
    Plugin Author Jordy Meow

    (@tigroumeow)

    Hi @skrabbel,

    It works with Media File Renamer version 4.0.0 πŸ™‚ Not the ones before.

    Thread Starter Skrabbel

    (@skrabbel)

    Hi @tigroumeow

    It works with 4.0.0 not realy. You have a similar problem. You can upload one picture and it will be renamed. If you upload a second one and you use the same title the first will be overwritten.

    If you do so with many files at the same time. It is the same problem. First picture get the filename and the second overwrite the first file. The third picture overwrite the second file. But they are alle diffrent entrys in the database.

    Then is the workaround before a better solution, because the old pictures aren’t destroyed.

    Plugin Author Jordy Meow

    (@tigroumeow)

    Do you use the “On Upload” setting?
    If you disable MLA, does it work?

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Don’t rename files on upload’ is closed to new replies.