-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #158 from plone/allowed_content_types
Support for allowed content types.
- Loading branch information
Showing
11 changed files
with
523 additions
and
116 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Improve contenttype detection logic for unregistered but common types. | ||
|
||
Change get_contenttype to support common types which are or were not registered | ||
with IANA, like image/webp or audio/midi. | ||
|
||
Note: image/webp is already a IANA registered type and also added by | ||
Products.MimetypesRegistry. | ||
[thet] |
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,7 @@ | ||
Support for allowed media types. | ||
|
||
Support to constrain files to specific media types with a "accept" attribute on | ||
file and image fields, just like the "accept" attribute of the HTML file input. | ||
|
||
Fixes: #157 | ||
[thet] |
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
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
Oops, something went wrong.