SWF extensions

In latest WordPress versions starting from 3.6.1, .swf extension is no longer allowed by default. Wordpress has disabled swf file uploads for security reasons. Please refer to for more details.

But still if you want to upload the swf file as a banner on your site - please do below mentioned changes.

Open functions.php file from WPAdCenter folder and add new function to it

if ( !function_exists( 'WPAdCenter_addSwf' ) )
function WPAdCenter_addSwf($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;

This will solve the problem. If still you are facing any issue, please raise a ticket.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request


Article is closed for comments.
Powered by Zendesk