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
As a place-holder during development we can start with treating an attachments field just like a list of URLs. That will display them as text rather than images. And, the user could add an arbitrary URL or delete them.
Once this is implemented, the user will see a better UX:
Display each attachment as a thumbnail image
Offer an X icon to delete each attachment
Offer an upload button to immediately choose and upload an image file using the attachments API.
While the attachment is uploading, the upload button would be disabled and show "Uploading...".
After the attachment has uploaded, the attachment URL would be added to the list of URLs for this field and immediately display a thumbnail.
Note that the upload process immediately stores the attachment on the server, but it is not associated with the current feature entry until the user successfully submits the form. So, we need to explain that to the user, and have the usual onbeforeunload protections. Also, we need to explain limits on upload size and file types (png, jpg, gif, webp).
Future work: Also support non-image attachments and display a text-file icon, PDF icon, movie icon, or other appropriate icon instead of a thumbnail.
The text was updated successfully, but these errors were encountered:
As a place-holder during development we can start with treating an attachments field just like a list of URLs. That will display them as text rather than images. And, the user could add an arbitrary URL or delete them.
Once this is implemented, the user will see a better UX:
X
icon to delete each attachmentNote that the upload process immediately stores the attachment on the server, but it is not associated with the current feature entry until the user successfully submits the form. So, we need to explain that to the user, and have the usual onbeforeunload protections. Also, we need to explain limits on upload size and file types (png, jpg, gif, webp).
Future work: Also support non-image attachments and display a text-file icon, PDF icon, movie icon, or other appropriate icon instead of a thumbnail.
The text was updated successfully, but these errors were encountered: