feat: Store image uploads as attachments in database (#1144)

* First pass

* Documentation

* Added optional documentId relationship

* name -> key

* cleanup: No need for separate documentId prop
This commit is contained in:
Tom Moor
2020-01-16 09:42:42 -08:00
committed by GitHub
parent 22230c25e5
commit 8e5a5a57a9
8 changed files with 171 additions and 31 deletions

View File

@ -53,25 +53,29 @@ export default function Api() {
<Description>
You can upload small files and images as part of your documents.
All files are stored using Amazon S3. Instead of uploading files
to Outline, you need to upload them directly to S3 with special
to Outline, you need to upload them directly to S3 with
credentials which can be obtained through this endpoint.
</Description>
<Arguments>
<Argument
id="filename"
description="Filename of the uploaded file"
id="name"
description="Name of the uploaded file"
required
/>
<Argument
id="kind"
description="Mimetype of the document"
id="contentType"
description="Mimetype of the file"
required
/>
<Argument
id="size"
description="Filesize of the document"
description="Size in bytes of the file"
required
/>
<Argument
id="documentId"
description="UUID of the associated document"
/>
</Arguments>
</Method>