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
This setting is respected in the "Edit form" UI of the admin dashboard, see the text in the image below that says "Please select a file." when the update-record button is clicked.
However, moving to the "Edit raw JSON" UI enables you to click the update-record button with no error pop-up. This effectively updates the record and removes the attachment, even though attachments are required for the collection, leaving things in an invalid state.
Steps to reproduce
Create a collection with attachments required.
Create a record with a valid attachment.
Navigate to the edit-record page for that record.
Click the update-record button on the "Edit form" UI and observe the error pop-up.
Navigate to the "Edit raw JSON" UI and click the update-record button.
Expected Outcome
An error pop-up saying "Please select a file." should appear, just like the "Edit form" UI.
Actual Outcome
The record is updated with no attachment, effectively removing the attachment, even though attachments are required.
The text was updated successfully, but these errors were encountered:
I'd like to propose a slightly different solution. If attachments are required and you're updating a record, if you don't include a new attachment it should keep the existing one. Does that sound reasonable or does it make more sense to always require a new attachment?
I'd like to propose a slightly different solution. If attachments are required and you're updating a record, if you don't include a new attachment it should keep the existing one. Does that sound reasonable or does it make more sense to always require a new attachment?
Defect Description
For a collection, it is possible to make attachments required for all records:
This setting is respected in the "Edit form" UI of the admin dashboard, see the text in the image below that says "Please select a file." when the update-record button is clicked.
However, moving to the "Edit raw JSON" UI enables you to click the update-record button with no error pop-up. This effectively updates the record and removes the attachment, even though attachments are required for the collection, leaving things in an invalid state.
Steps to reproduce
Expected Outcome
Actual Outcome
The text was updated successfully, but these errors were encountered: