-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implement additional mime types (#8446)
* implement additional mime types * correct typo * reduce complexity * add optional * add missing release note * yamllint * yamllint * Update file-router-additional-mime-types-47fe57e6816b83da.yaml minor reno change for consistency --------- Co-authored-by: Vladimir Blagojevic <[email protected]>
- Loading branch information
Showing
2 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
releasenotes/notes/file-router-additional-mime-types-47fe57e6816b83da.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
features: | ||
- | | ||
Added a new parameter `additional_mimetypes` to the FileTypeRouter | ||
component. | ||
This allows users to specify additional MIME type mappings, ensuring | ||
correct | ||
file classification across different runtime environments and Python | ||
versions. | ||
enhancements: | ||
- | | ||
Improved file type detection in FileTypeRouter, particularly for Microsoft | ||
Office file formats like .docx and .pptx. This enhancement ensures more | ||
consistent behavior across different environments, including AWS Lambda | ||
functions and systems without pre-installed office suites. | ||
fixes: | ||
- | | ||
Addressed an issue where certain file types (e.g., .docx, .pptx) were | ||
incorrectly classified as 'unclassified' in environments with limited | ||
MIME type definitions, such as AWS Lambda functions. |