Duplicate file names

Created on 17 January 2018, over 6 years ago
Updated 31 May 2023, over 1 year ago

Does anyone know how well f(f)p handles duplicate file names?

I want to use a file scheme that is, for instance, [product category-titel]-[product name]-[product sku].[ffp-extension]

Since a product variation has multiple images (think amazon, ebay,..) I end up with identical filenames from ffp.

On saving the variation the images seemed to get all messed up. Maybe it's a bug in ffp or maybe it's simply not supported?

✨ Feature request
Status

Closed: duplicate

Version

1.0

Component

Code

Created by

miiimooo Europe

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΉπŸ‡·Turkey cumhur

    Dear miiimooo,

    I installed version 10.2 and using commerce. I am importing products and variations from xml link via feeds module
    When I import product variations for Color And size module create multiple images for same color attribute.
    I want to import images for products colors and use same images for all product sizes

    I modify code above but not fixed the problem.How can I fix this issue
    thank you

    Drupal::service('file_system')->prepareDirectory($dirname, FileSystem::CREATE_DIRECTORY && FileSystem::MODIFY_PERMISSIONS)
    && $new_file = \Drupal::service('file.repository')->move($file, $destination)

  • Status changed to Closed: duplicate over 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States mortona2k Seattle

    This issue was fixed in #2923206
    https://git.drupalcode.org/project/filefield_paths/-/commit/29fffb870dad...

    I had the reported problem, but setting the filefield paths temporary dir worked.
    I think this patch is also needed: https://www.drupal.org/project/filefield_paths/issues/3045063 πŸ› Incorrect redirect hash generated Needs work

Production build 0.71.5 2024