const signed_url = await aws_client.sign(
new Request(url, {
method: "PUT",
}),
{
aws: { signQuery: true, allHeaders: true },
headers: {
"If-Unmodified-Since": new Date(0).toUTCString(),
"Origin": "http://localhost:3000"
"Content-Type": "image/jpeg",
"Content-Disposition": "attachment",
"Cache-Control": "private, max-age=0, stale-if-error=31536000",
},
}
);
const signed_url = await aws_client.sign(
new Request(url, {
method: "PUT",
}),
{
aws: { signQuery: true, allHeaders: true },
headers: {
"If-Unmodified-Since": new Date(0).toUTCString(),
"Origin": "http://localhost:3000"
"Content-Type": "image/jpeg",
"Content-Disposition": "attachment",
"Cache-Control": "private, max-age=0, stale-if-error=31536000",
},
}
);