Thanks – no not on multi site.
I tried both of these but only managed to create error messages and blocking my site – I guess I put them in the wrong places…
Now that I work my way back through the problem, it all started just after I upgraded to version 3.7.1 when I suddenly could no longer upload swf files. I found this workaround on the WP forum but it inadvertently blocked other images files:
In the TwentyTen theme:
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 = array(
‘swf’ => ‘application/x-shockwave-flash’,
‘exe’ => ‘application/x-msdownload’,
);
}
return $mimes;
}
add_filter(‘upload_mimes’,’demo’);
I seems that was now allowing swf but blocking all other image files.
The workaround was to extend the list of permitted files by adding to the above:
‘png’ => ‘image/png’,
‘gif’ => ‘image/gif’,
‘jpeg’ => ‘image/jpeg’,
‘jpg’ => ‘image/jpeg’,
The other WP site that I have and that I checked runs on WP 3.5 and has absolutely no issues…
If I delete the workaround, I can indeed upload png jpg etc, but not swf, so I conclude that there is some bug in 3.7.1 that prevents uploading swf files. WP may wish to look into this …?
Meanwhile, I will carry on as is now – “if it works, don’t fix it!”
Thanks for your help !