You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
Logs
Browsers
No response
OS
No response
The text was updated successfully, but these errors were encountered: