• Hi,

    We seem to be able to rename images without any issues. However, when rename a PDF the file name has the text string “pdf” appended to the filename before the file extension.

    Example file: example.pdf
    Rename to: new-example.pdf
    Resulting file name: new-examplepdf.pdf

    We’ve tested this with WordPress 6.6.1, PHP 8.2.19, MFR Version 5.9.7, and the Twenty Twenty-Four theme. We didn’t readily see any errors in the browser console.

    Here’s a log of the activity where it shows it inserts the extra “pdf” in the filename:

    2024-09-17 00:15:56: File /nas/content/live/testing/wp-content/uploads/2024/09/example.pdf /nas/content/live/testing/wp-content/uploads/2024/09/new-examplepdf.pdf

    We’re using the UI Rename Button > Modal option in the Media Library list view to perform the rename.

    Thanks for any help you can send our way.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter SJNBham

    (@sjnbham)

    We’ve tried Edge and Firefox with the same results.

    Plugin Support Val Meow

    (@valwa)

    Hey @sjnbham! 👋

    There seem to be issues with renaming PDFs overall. Thanks for reporting this. We will look into it on our side and come up with a solution. Thanks for your patience and understanding.

    Thread Starter SJNBham

    (@sjnbham)

    Hi @valwa – Just checking on the status of this. Thanks!

    Thread Starter SJNBham

    (@sjnbham)

    Hi @valwa – Just checking back on this bug. It looks like it’s persisted over the last couple of revision updates.

    Thanks!

    • This reply was modified 1 year, 3 months ago by SJNBham.
    Plugin Support Val Meow

    (@valwa)

    Hey @sjnbham! 👋

    This was fixed four months ago in version 6.0.1. I tested the latest version of the plugin, and the PDF file seems to be renamed correctly on a test server. If you can still reproduce the issue, could you let me know how and what settings you are using? Thanks!

    Thread Starter SJNBham

    (@sjnbham)

    Hi @valwa,

    With further testing, it looks like this bug may be related to having the Renaming Methods > Manual > Sanitize > Enable option selected. When we deselect this option, the renaming works as expected. We’re guessing the Sanitize option is turned on by default. We don’t recall turning it on purposefully. But it has been a few months since we first installed it. In any case, the behavior of injecting extra characters when the Sanitize is turned on still appears to be there in Version 6.0.5. Also note, this seems to only be affecting PDFs. JPG and PNG files rename just fine with the sanitize option turned on.

    Thanks for continuing to look into this.

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

The topic ‘Renaming PDFs results in “pdf” being appended to file name’ is closed to new replies.