• Resolved Gal Baras

    (@galbaras)


    When uploading a file into a WooCommerce product, the user specifies a title, and WooCommerce creates an entry in the Media Library with that title. When Renamer isn’t involved, the file name doesn’t change, and everything works.

    When the renamer is active, the uploaded file name is changed to match the title, and WooCommerce download links result in the file not being found.

    I had this problem with PDFs, and was able to work around it by checking the advanced setting “Images Only”, but I’m pretty sure this isn’t related to the type of file.

    Looks to me more related to WooCommerce adding some unique string to the uploaded file name, and this information gets lost somewhere along the way. Renamed files have that unique suffix, but it looks like WooCommerce is keeping the pre-Renamer name in metadata somewhere, and refers to that, instead of the new name.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Val Meow

    (@valwa)

    Hey @galbaras! 👋

    I couldn’t reproduce the issue on my end. Are you using On UploadRename on Post Save, or both at the same time? Also, could you let me know how exactly the file is being added to your WordPress product?

    I tested with both options enabled by adding a downloadable file, and since it just refers to a link, a new media entry is created correctly and the file is renamed accordingly. Let me know what your exact setup looks like so I can assist further!

    Thread Starter Gal Baras

    (@galbaras)

    Hey @valwa ,

    Renaming Methods: Auto = Based on media title, None, None | Manual = Rename field enabled | On upload = None, None, None

    Advanced: Side updates enabled for Posts and Post meta

    The file is uploaded straight into the product by clicking Add, entering a name, then clicking Choose file, then Upload, and uploading the file. The file appears in the media library and thumbnails are being created.

    This site uses EWWW Image Optimizer, but I don’t see any WebP files, likely because WooCommerce adds unique strings to them beyond what it adds to the name of the uploded PDF.

    When the plugin is deactivated, or only handling images, the PDF isn’t renamed and WooCommerce download links work file, so Image Only must be disabled when testing with a PDF.

    The download link is created for an order, so you need to create an order for your product and get the download link from the bottom of the order edit page.

    Plugin Support Val Meow

    (@valwa)

    Hey @galbaras! 👋

    The issue has been detected and will be fixed in the next update. Thanks for your patience and understanding!

    Thread Starter Gal Baras

    (@galbaras)

    Woohoo! Well done!

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

You must be logged in to reply to this topic.