A form exists that allows users with the appropriate permissions to upload documents
tatyree opened this issue · 0 comments
tatyree commented
Background
We want to allow authenticated school representatives the ability to upload documents via the edit or create page (or both) on their vacancies on TVS.
Done when:
- We have decided which parts of the lifecycle of a vacancy will accept document uploads (create or edit or both - we can investigate more complex workflows later).
- A minimum viable design exists for every form control that will be used to documents.
- The upload control accepts, at a minimum, the title to be displayed for the document and a file upload field to receive the document.
- Both the title and the document upload are mandatory.
- Both the title and the filename are unique, scoped to the vacancy.
- The system errors gracefully if the user tries to upload a document larger than 10MB.
- Copy, including instructions, hints, tooltips, et al. has been written and is associated with the controls.
- The system explains next steps to the user as soon as the initial document upload has completed (see non-blocking specification in #1249). It might read something like "We are processing your upload. It will appear in the 'Downloads' section of your vacancy listing shortly", for example.
- One the document has been processed and is available in the shared folder, the public link shows in the appropriate place in the vacancy. The copy used for this link is the title.
- The admin view of the document gives the user the ability to delete the document.
- If the user deletes the document, it is removed from the Google Drive as well as the database record.
Nice to have:
- A drag and drop controls for file upload.