Opened 4 years ago
Closed 4 years ago
#5204 closed defect (bug) (invalid)
WordPress Multisite Network Settings "Upload file types" Not Working
Reported by: | rupok | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Component: | General | Keywords: | |
Cc: |
Description
Steps to replicate:
- Create a fresh WordPress Multisite
- Go to My Sites > Network Admin > Settings
- Check the "Upload file types" option. "ttf" is not allowed there by default.
- Add "ttf" in that input field, Save.
Now try uploading a ttf file through the native media uploader. WordPress still won't allow uploading .ttf files.
Workaround:
- Add the following line in wp-config.php file and save:
<?php define('ALLOW_UNFILTERED_UPLOADS', true);
Now you can upload .ttf files.
- Not only that, now you can upload files which have type not in the "Upload file types" settings.
Summary: "Upload file types" declarations are not working. The workaround is not a fix because it allows *all* extensions. Sorry if I'm doing, but am I missing anything?
Change History (1)
Note: See
TracTickets for help on using
tickets.
Hello @rupok, this Trac is only used for the WordPress.org site. For the WordPress core software please use https://core.trac.wordpress.org/.
But to answer your question:
ttf
is not part of the default mime types. You have to extend this list with the mime_types filter first.