Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-25047

Updating a BinaryFile generates wrong download filename

    XMLWordPrintable

Details

    Description

      On a content of content type File, when you change an already uploaded file from one with a mimetype with the format "a/file" to another with mimetype "b/anotherfile", the downloaded file after updating the content will save the file with the original file mimetype's affected extension.
      Example:

      • Create File content with a file image.png (thus having mimetype "image/png"),
      • publish it,
      • download it from its showing link: it will be saved as "<image_hash>.png

      Edit the content and replace the file with video.avi (having mimetype "video/avi"),
      republish it,
      download it: it will be saved as "<image_hash>.png", still, instead of as an avi extension file.

      Update: Mimetype doesn't actually matter - if you replace the file with another one of the same mimetype, it still downloads with the previous filename.

      Attachments

        Activity

          People

            Unassigned Unassigned
            rui.silva-obsolete@ez.no Rui Silva (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 hours
                4h