Details
-
Improvement
-
Resolution: Fixed
-
Major
-
6.4-milestone-1
-
None
Description
We use Tika to detect the attachment content type but we rely only on the attachment file name. This means that if you upload a text file named "foo" (no extension) and call:
$doc.getAttachment('foo').mimeType
you will get "application/octet-stream". We can improve the accuracy by using the attachment content when the file name extension is unknown.
Attachments
Issue Links
- is duplicated by
-
FILEMAN-70 When uploading a file without extension, open it with the text editor
- Closed
- is related to
-
XWIKI-3249 Servlet container dependent mimetypes for attachments
- Closed