Skip to content

🤔 [ISSUE] - Multiple Attachment upload issue #972

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
marrouchi opened this issue May 5, 2025 · 0 comments · Fixed by #1039
Closed

🤔 [ISSUE] - Multiple Attachment upload issue #972

marrouchi opened this issue May 5, 2025 · 0 comments · Fixed by #1039
Assignees
Labels
bug Something isn't working

Comments

@marrouchi
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants