Uploaded image for project: 'Libcloud'
  1. Libcloud
  2. LIBCLOUD-232

Atmos storage driver loses content type during streaming upload

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.10.1
    • Fix Version/s: 0.11.0
    • Component/s: Storage
    • Labels:
      None
    • Environment:

      All

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              kami Tomaz Muraus
              Reporter:
              freakboy3742 Russell Keith-Magee
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: