CCALI / a2jauthor

CALI A2JAuthor document automation authoring and viewing platform
https://www.a2jauthor.org
Other
4 stars 1 forks source link

Change the way authors can upload external files #224

Open JessicaFrank opened 2 years ago

JessicaFrank commented 2 years ago

Currently authors can upload the same file multiple times and often do because there's no way to pick from previous resources that have been uploaded. This can lead to huge file sizes if the external files are mp3 or video files.

We should force all file uploads to happen on the All Files tab via the existing Upload Files button. Then we should change the file selection process in the question design editor to resemble the variable picker -- the author sees a list of all available files or can start typing characters and sorting by characters typed that match existing files.

This will eliminate duplicate files inside a single interview + make it easier for authors to add media content to their questions.

Also, if an author tries to upload a file twice (with the same name), A2J should tell them one with that name already exists and ask if they want to override the existing one as a backup method for preventing duplicate file uploads.

janebitovi commented 2 years ago

Added a dropdown button and search/filter very similar to the newer var picker fields that lets authors choose from existing files easily

image

Duplicates will probably be less likely to occur now but if you'd like me to take further action to prevent it based on file name, happy to take a look.

Room for improvement: the list of files shown could be filtered based on what type(s) of files the field expects the Author to use. (such as audio field, mp3 only, video field, mp4 only, image field, gif/png/jpg only)

added via #321