Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-22408

Obey the MIME type set via the X-File-Type on multipart file upload

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 8.10
    • Fix Version/s: 7.10-HF26, 8.10-HF08, 9.2
    • Component/s: Rest API

      Description

      On multipart upload (/api/v1/upload/ endpoint), the X-File-Type header is not respected.

      This is a problem when trying to set the correct MIME type for svg, css, json and other files that are not recognized in the backend.

      Reported by Kristjan Cocev (https://github.com/cocevk)
      PR: https://github.com/nuxeo/nuxeo/pull/808

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours
                2h