[
https://issues.apache.org/jira/browse/LIBCLOUD-232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13420519#comment-13420519
]
Russell Keith-Magee commented on LIBCLOUD-232:
----------------------------------------------
Patch provided as part of pull request
https://github.com/apache/libcloud/pull/70
> Atmos storage driver loses content type during streaming upload
> ---------------------------------------------------------------
>
> Key: LIBCLOUD-232
> URL: https://issues.apache.org/jira/browse/LIBCLOUD-232
> Project: Libcloud
> Issue Type: Bug
> Components: Storage
> Affects Versions: 0.10.1
> Environment: All
> Reporter: Russell Keith-Magee
>
> When you upload a file using upload_object(), the file/object name is
> interrogated to determine the mime type, and that mime type is then used when
> transferring the file.
> Following git commit 44dabc6404d38d77939aa446a331d0fa2d090a26, streaming
> uploads now work on the Atmos driver for new files. However, if you upload
> using streaming upload, the mime type isn't set on the uploaded object.
> This is important because if the mime type isn't provided, later downloads
> are all encoded application/octet-stream, which means the browser can only
> respond by downloading the object.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira