Allowed file types for upload
-
I have a multisite and can edit the allowed type of files for the network but it doesn’t work. It works for some standard files like zip but not “other” files like “xz” (which are pretty standard). I always get “not allowed” to upload even with the extensions explicitly allowed.
I have tried the WP Add Mime Types plugin and it doesn’t work either. Always not allowed.
Adding
define( 'ALLOW_UNFILTERED_UPLOADS', true );to wp-config doesn’t work. Even if it did I don’t really want that anyway.Editing
wp_get_mime_types()in function.php to add the types doesn’t work either. Also tried modifyingwp_get_ext_types()and that doesn’t help.I’m thinking there is some fundamental problem here that I can’t figure out. My web server does know about the MIME types.
Ideas?
The topic ‘Allowed file types for upload’ is closed to new replies.