Create a Presigned URL
Developing
Generate presigned URL for direct S3 upload.
Request
Body Params application/json
{
"fileName": "screenshot.jpg",
"fileType": "image/jpg",
"fileSize": "5242880",
"type": "LETTER",
"acl": "public-read"
}
Request Code Samples
curl --location --request POST 'https://sims.sman1samarinda.sch.id/api/presigned' \
--header 'Content-Type: application/json' \
--data-raw '{
"fileName": "screenshot.jpg",
"fileType": "image/jpg",
"fileSize": "5242880",
"type": "LETTER",
"acl": "public-read"
}'
Responses
application/json {
"success": true,
"message": "OK.",
"meta": {},
"errors": [],
"result": {
"uploadUrl": "https://haunting-perfection.ponpes.id/",
"fileUrl": "https://quick-trolley.id/",
"key": "nisi consequat qui",
"expiresIn": -65095111
}
}
Modified at 2026-01-26 07:16:24