Permitting SWF File Type
-
Greetings all! I’m trying to upload a swf file and I’m getting the permission denied error. I have searched and found a thread that said to add this line of code to the end of my functions.php file –
function demo($mimes) { if ( function_exists( 'current_user_can' ) ) $unfiltered = $user ? user_can( $user, 'unfiltered_html' ) : current_user_can( 'unfiltered_html' ); if ( !empty( $unfiltered ) ) { $mimes['swf'] = 'application/x-shockwave-flash'; } return $mimes; } add_filter('upload_mimes','demo');
[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
However when I add it, it breaks my theme and everything goes blank. Help?
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Permitting SWF File Type’ is closed to new replies.