• Resolved Jos Klever

    (@josklever)


    When I needed to restore a plugin from a backup, I noticed that some images from that plugin were also missing, because they were named like “logo-150×150.png” or something.

    That made me think of a method to only exclude thumbnails from the uploads folder, so I changed the regular expression to:

    "/\/uploads\/.+-\d+x\d+\.(?:png|jpe?g|bmp|tiff|gif|webp|avif)$/"

    This only works for default locations (both with or without year/month folders), but probably not if the upload path has a different name. I don’t use these kinds of setups, but maybe you have a better idea to fix that.

    For me it’s working now, but maybe this is an improvement your users also like.

    Thanks,
    Jos Klever

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘RFC: only exclude thumbnails from uploads folder’ is closed to new replies.