Code that can upload media assets to google drive exists.
tatyree opened this issue · 0 comments
tatyree commented
Background
Documents uploaded by authenticated users representing schools should be able to upload documents to our public document store.
Done when:
- Business logic exists that transfers files from the TVS system to the Teaching Vacancies shared folder.
- If the upload process a dedicated owner in the Google Drive folder (I do not think it does, but check), then a transferrable user account is created and the file is associated with that account (
tvs-uploads@digital.education.gov.uk
for example). That user account should be documented in theREADME
or/documents
. - The process of uploading the file from the TVS system to the shared folder does not block the TVS system from responding to the uploading user's http request.
- A public sharing link is added to the TVS system in the appropriate table (
vacancies
?) once the file has been saved to theTeaching Vacancies
folder. - Temporary files are cleaned up once the file is saved to
Teaching Vacancies
and the shared link is saved to the appropriate table.
There may be clients better suites, but here is a link to the official Google api client: