Copy link to clipboard
Copied
im using a curl api to convert pdf into xlsx using adobe pdf services api
and i want to use external storage and my prefered storage is amazon s3
to do this i require an input uri and an output uri and both need to be presign urls
i can make a presign for input uri as i have an object key but i do not know how to make an output uri
Copy link to clipboard
Copied
So, I've only done this in ColdFusion, Node, and Python. It involves creating a PUT request URL for the bucket and filename for output. Here's my Node code, but it just wraps their SDK so it's probably not too helpful. That being said, if Amazon has a PHP SDK, it may help you find it:
async function getSignedUploadUrl(path) {
let command = new PutObjectCommand({ Bucket: bucket, Key:path });
return await getSignedUrl(s3Client, command, { expiresIn: 3600 });
}