minio-cpp icon indicating copy to clipboard operation
minio-cpp copied to clipboard

Set ResponseContentDisposition on GetPresignedObjectUrlArgs

Open vicmassy opened this issue 8 months ago • 0 comments

Hi, I would like to know if its possible to set the content disposition headers when calling GetPresignedObjectUrl? My need is because I store the objects with unique IDs but on download they have an actual filename that the user sets. For instance if they upload a PDF with the name document.pdf I would store it as 2837-2933-3443 and on download I would want to set the headers so that I get back the document.pdf.

I noticed that in the AWS SDK this is feasible using ResponseContentDisposition on the arguments passed to GetPresignedObjectURL.

vicmassy avatar Mar 17 '25 15:03 vicmassy