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:
@ -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>
|
||||
|
||||
|
Reference in New Issue
Block a user