Pre-sign (use your own domain name to generate a preview download address for an object, and the expire_sec expiration time takes effect only when the bucket is private)
File ID
Domain ID
Whether to enable https (default false)
Expiration time (in seconds)
File name
File preview url
File download url
File expiration time
{
"res": {
"key": "files/test.txt",
"url": "https://bucket-****.16481364.xyz/files/test.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=***&X-Amz-Date=20240227T120000Z&X-Amz-Expires=3600&X-Amz-Signature=***&X-Amz-SignedHeaders=host",
"download_url": "https://bucket-****.16481364.xyz/files/test.txt?response-content-disposition=attachment&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=***&X-Amz-Date=20240227T120000Z&X-Amz-Expires=3600&X-Amz-Signature=***&X-Amz-SignedHeaders=host",
"expire_time": 1709035200
}
}