Skip to content

Different filename behavior between import assets and from another element type. #1677

@aodihis

Description

@aodihis

Description

When using Feed Me to import an asset from another entry type (via a field that has asset field), the filename gets duplicated with the extension.

Example:

Input filename: test.jpg

Feed Me result: test.jpg.jpg

This issue only happens when the asset is imported through another entry type. If assets are imported directly via the Assets entry type, the filename is handled correctly (no duplicate extension).

Expected behavior:

The filename should not have its extension duplicated.

Ideally, if test.jpg is provided, the asset should be saved as test.jpg (not test.jpg.jpg).

Image

So, which is the correct behavior?

Steps to reproduce

  1. Create a feed using entry type with asset field.
  2. Add custom filename when import the asset.

Additional info

  • Craft version: 5.8.13
  • PHP version: 8.2
  • Database driver & version:
  • Plugins & versions: 6.8.0

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions