Generate a presigned URL for uploading a document securely with check if is a public document with .p7m firm and Antivirus scan in order to prevent malware or other viruses.
The type of the file for which the presigned URL is being generated (e.g., ‘pdf’).
Indicates whether the document is public or not.
Responses
The URL to which the file should be uploaded.
Additional fields required by the storage service to accompany the upload request.
Echoes back the type of the file that was specified in the request.
A unique identifier for the uploaded file in the storage system.
POST /api/v2/presigned-url HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 43
{
"fileType": "text",
"isDocumentPublic": true
}
curl -L \
--request POST \
--url '/api/v2/presigned-url' \
--header 'Content-Type: application/json' \
--data '{
"fileType": "text",
"isDocumentPublic": true
}'
const response = await fetch('/api/v2/presigned-url', {
method: 'POST',
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify({
"fileType": "text",
"isDocumentPublic": true
})
});
const data = await response.json();
import json
import requests
response = requests.post(
"/api/v2/presigned-url",
headers={"Content-Type":"application/json"},
data=json.dumps({
"fileType": "text",
"isDocumentPublic": True
})
)
data = response.json()
{
"presignedUrl": "text",
"fields": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"fileType": "text",
"key": "text"
}
No content
No content
No content