Uploads
Creates a multipart external upload
POST
https://discourse.example.com/uploads/create-multipart.json
Creates a multipart upload in the external storage provider, storing a temporary reference to the external upload similar to /get-presigned-put.
You must have the correct permissions and CORS settings configured in your external provider. We support AWS S3 as the default. See:
https://meta.discourse.org/t/-/210469#s3-multipart-direct-uploads-4.
An external file store must be set up and enable_direct_s3_uploads must
be set to true for this endpoint to function.
Body
application/json
upload_ typestringavatarprofile_backgroundcard_backgroundcustom_emojicomposerrequiredfile_ namestringrequiredExample
IMG_2021.jpegfile_ sizeintegerrequiredFile size should be represented in bytes.
Example
4096metadataobjectResponse
200OKany
external upload initialized