Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
5.1 EE SP4 (5.1.7), 5.2 EE SP3 (5.2.7)
-
All
Description
MimeTypesUtil.getContentType() is used to determine the content type of a file. Previously, the content of the file is examined to determine the content type. If the content type can not be determined based on the file content, the file extension is used to determine the content type. With this improvement, the file extension will be used to determine the content type before examining the content of the file. This change improves performance.
This change also applies to FileUtil.extractText() since it relies on MimeTypesUtil.getContentType().
Attachments
Issue Links
- is related to
-
LPS-8097 Default the use of filename for searching mimetype and text extraction
- Closed