Setting Content-Type using PUTUploadTransfer

Amazon S3 upload add-on.
Post Reply
Wad
Posts: 4
Joined: Tue Sep 14, 2010 4:37 am

Setting Content-Type using PUTUploadTransfer

Post by Wad »

Is it possible te set Content-Type to application/octet-stream using PUTUploadTransfer?

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Setting Content-Type using PUTUploadTransfer

Post by support »

For all files whatever their real content-type? Why do you need this? Maybe you need to setup Content-Disposition if it is to allow download with "Save As" dialog?

Wad
Posts: 4
Joined: Tue Sep 14, 2010 4:37 am

Re: Setting Content-Type using PUTUploadTransfer

Post by Wad »

Yes. I need to force a "Save-As" dialog regardless of the content type. Our users will store a large variety of files including jpegs etc. that need to be downloaded and not displayed in a browser.
Our development is almost complete using the PUTUploadTransfer method. Any help you can give me would be greatly appreciated.

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Setting Content-Type using PUTUploadTransfer

Post by support »

The right way to do so is to enable CONTENT-DISPOSITION parameter:
<PARAM NAME="param8" VALUE="s3contentdisposition">
<PARAM NAME="value8" VALUE="true">

It enables "Save-As" for all uploaded file and it allows having the correct mime-type.

Does it help?

Wad
Posts: 4
Joined: Tue Sep 14, 2010 4:37 am

Re: Setting Content-Type using PUTUploadTransfer

Post by Wad »

Works perfectly. Thanks for your excellent support. :D

Post Reply