Upload
Operations related to the file uploads
Get a public presigned URL
Authorizations
Query parameters
fileNamestringRequired
The file name
bucketstringOptionalDefault:
The base directory name to upload the file
temp
paramsstringOptional
The params for the file upload
Responses
200
OK
application/json
get
/upload/presign/publicGET /api/upload/presign/public?fileName=text HTTP/1.1
Host: abp-api.akinon.net
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200
OK
{
"url": "https://akinon.s3.amazonaws.com/...",
"fields": {
"bucket": "text",
"key": "_temp/e6d3ba06-6b45-407d-800d-d31fba13d415_${fileName}",
"X-Amz-Algorithm": "AWS4-HMAC-SHA256",
"X-Amz-Credential": "AKIAJ2...",
"X-Amz-Date": "20200723T120000Z",
"X-Amz-Signature": "7f7b...",
"Policy": "eyJleHBpcmF0aW9uIjoi..."
}
}
Get a private presigned URL
Authorizations
Query parameters
fileNamestringRequired
The file name
bucketstringOptionalDefault:
The base directory name to upload the file
temp
paramsstringOptional
The params for the file upload
Responses
200
OK
application/json
get
/upload/presign/privateGET /api/upload/presign/private?fileName=text HTTP/1.1
Host: abp-api.akinon.net
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200
OK
{
"url": "https://akinon.s3.amazonaws.com/...",
"fields": {
"bucket": "text",
"key": "_temp/e6d3ba06-6b45-407d-800d-d31fba13d415_${fileName}",
"X-Amz-Algorithm": "AWS4-HMAC-SHA256",
"X-Amz-Credential": "AKIAJ2...",
"X-Amz-Date": "20200723T120000Z",
"X-Amz-Signature": "7f7b...",
"Policy": "eyJleHBpcmF0aW9uIjoi..."
}
}
Get a public presigned URL
Authorizations
Path parameters
organizationIdstringRequiredExample:
The MongoDB ID
63ea10b94a472e003305232b
Pattern: ^[0-9a-fA-F]{24}$
Query parameters
fileNamestringRequired
The file name
bucketstringOptionalDefault:
The base directory name to upload the file
temp
paramsstringOptional
The params for the file upload
Responses
200
OK
application/json
get
/organizations/{organizationId}/upload/presign/publicGET /api/organizations/{organizationId}/upload/presign/public?fileName=text HTTP/1.1
Host: abp-api.akinon.net
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200
OK
{
"url": "https://akinon.s3.amazonaws.com/...",
"fields": {
"bucket": "text",
"key": "_temp/e6d3ba06-6b45-407d-800d-d31fba13d415_${fileName}",
"X-Amz-Algorithm": "AWS4-HMAC-SHA256",
"X-Amz-Credential": "AKIAJ2...",
"X-Amz-Date": "20200723T120000Z",
"X-Amz-Signature": "7f7b...",
"Policy": "eyJleHBpcmF0aW9uIjoi..."
}
}
Get a private presigned URL
Authorizations
Path parameters
organizationIdstringRequiredExample:
The MongoDB ID
63ea10b94a472e003305232b
Pattern: ^[0-9a-fA-F]{24}$
Query parameters
fileNamestringRequired
The file name
bucketstringOptionalDefault:
The base directory name to upload the file
temp
paramsstringOptional
The params for the file upload
Responses
200
OK
application/json
get
/organizations/{organizationId}/upload/presign/privateGET /api/organizations/{organizationId}/upload/presign/private?fileName=text HTTP/1.1
Host: abp-api.akinon.net
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200
OK
{
"url": "https://akinon.s3.amazonaws.com/...",
"fields": {
"bucket": "text",
"key": "_temp/e6d3ba06-6b45-407d-800d-d31fba13d415_${fileName}",
"X-Amz-Algorithm": "AWS4-HMAC-SHA256",
"X-Amz-Credential": "AKIAJ2...",
"X-Amz-Date": "20200723T120000Z",
"X-Amz-Signature": "7f7b...",
"Policy": "eyJleHBpcmF0aW9uIjoi..."
}
}
Last updated
Was this helpful?