Cannot set new Upload file types
-
Hi!
I would like to add a new file type (swf) on our WP multisite. I added the extension in the Network settings to the Upload file types field. But it is still not possible to upload swf files to the media library.
The errorr isfile.swf has failed to upload due to an error Sorry, this file type is not permitted for security reasons.
I have checked the codex page on this matter. If the file type is already defined in wp-includes/functions.php it should work. And swf is defined in that file.
Unfortunately there is also this in there:
function get_allowed_mime_types ... unset( $t['swf'], $t['exe'] ); ...
This function supposedly disables swf files.
I would like the users to upload the swf files regardless of the theme they use.
How do I enable swf file upload without changing WP core or theme code?Regards,
mmihelic
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Cannot set new Upload file types’ is closed to new replies.