Details
-
Bug
-
Resolution: Fixed
-
High
-
5.4.0, 5.3.4
Description
If you download (content/download) files upload with multiupload extension, the content-type of those files won't be correct.
Steps to Reproduce
- Create a simple text file and name it "some_file_001.txt"
- Triplicate that file and create "some_file_003.txt" and "some_file_003.txt"
- Upload them all with multiupload
- Duplicate again "some_file_001.txt" and create "some_file_004.txt"
- Open the media content part and create a file content object. Add "some_file_004.txt" to it and publish it
- Download one of the multiuploaded files with curl -i "http://your_site.com/content/download/140/863/file/some_file_001.txt"
- Download the singleuploaded file with curl -i "http://your_site.com/content/download/140/863/file/some_file_004.txt"
- Confirm your results will look like the one below
curl -i "http://your_site.com/content/download/140/863/file/some_file_001.txt
HTTP/1.1 200 OK
Date: Wed, 03 Dec 2014 11:02:49 GMT
Server: Apache/2.2.22 (Debian)
X-Powered-By: eZ Publish
Expires: Wed, 03 Dec 2014 11:12:49 GMT
Last-Modified:
Cache-Control:
Pragma:
Served-by: 530.ezp.pt
Content-language: en-GB
Content-Disposition: attachment
Content-Length: 945949
Content-Transfer-Encoding: binary
Accept-Ranges: bytes
Content-Type: application/octet-stream
curl -i "http://your_site.com/content/download/140/863/file/some_file_004.txt
HTTP/1.1 200 OK
Date: Wed, 03 Dec 2014 11:02:16 GMT
Server: Apache/2.2.22 (Debian)
X-Powered-By: eZ Publish
Expires: Wed, 03 Dec 2014 11:12:16 GMT
Last-Modified:
Cache-Control:
Pragma:
Served-by: 530.ezp.pt
Content-language: en-GB
Content-Disposition: attachment
Content-Length: 947601
Content-Transfer-Encoding: binary
Accept-Ranges: bytes
Vary: Accept-Encoding
Content-Type: text/plain
Attachments
Issue Links
- relates to
-
EZP-25199 Files uploaded using multiupload before fix from EZP-23739 will continue without extension
- Closed