Skip to content

🤔 [ISSUE] - Multiple Attachment upload issue #972

Closed
@marrouchi

Description

@marrouchi

Description

When a plugin defines more than one SettingType.attachment entry, the file selected for the second (or any subsequent) attachment is saved to the first attachment field instead of its own.

Reproduction steps

1. In settings.ts for any plugin, add two attachment settings (e.g. logo and background):
export default [
  { label: 'logo', type: SettingType.attachment, value: '', group: 'default' },
  { label: 'background', type: SettingType.attachment, value: '', group: 'default' },
];
2. Open Admin → Visual Editor → Plugins → [your plugin] → Settings.
3. Upload logo.png to the logo field → click Save → works as expected.
4. Upload bg.jpg to the background field → Error

Logs

Browsers

No response

OS

No response

Metadata

Metadata

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions