lale-help / lale-help

A collaborative platform for volunteer refugee support.

Home Page:http://lale.help

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow updating of stored file for document

dottorer opened this issue · comments

Today, we do not support the updating of stored files for our documents. This is problematic since users have to completely delete a document (and its associated file in S3) and create a new one. This makes collaboration and repeated updates impossible, breaks the URL to the document and is generally suboptimal.

We should instead:

  1. provide the option on the 'Edit document' page to upload a new file for this document (note that "document" is an object instance in the Lale app which points to a stored file in S3 or an external URL).
  2. when uploading a new file for a document, delete the old stored binary from S3, use the existing key to encrypt the new file and store in S3.

We should also still offer the option to flat out delete the entire document (and its associated file) from the edit page. See mockup here:
image