Page 1 of 1

Setting Content-Type using PUTUploadTransfer

Posted: Wed Sep 15, 2010 7:33 am
by Wad
Is it possible te set Content-Type to application/octet-stream using PUTUploadTransfer?

Re: Setting Content-Type using PUTUploadTransfer

Posted: Wed Sep 15, 2010 8:36 pm
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?

Re: Setting Content-Type using PUTUploadTransfer

Posted: Wed Sep 15, 2010 11:04 pm
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.

Re: Setting Content-Type using PUTUploadTransfer

Posted: Sun Sep 19, 2010 5:35 pm
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?

Re: Setting Content-Type using PUTUploadTransfer

Posted: Mon Sep 20, 2010 11:08 pm
by Wad
Works perfectly. Thanks for your excellent support. :D