Multisite media
-
Hello,
I’m trying to configure a wordpress multisite.
Currently that works on almost everything but I have an issue with some media file.In my template I hadded a filter
add_filter('upload_mimes', 'addUploadMimes'); if( ! function_exists ( 'addUploadMimes') ) { function addUploadMimes($mimes) { $mimes = array_merge($mimes, array( 'svg' => 'image/svg+xml' )); return $mimes; } }
to authorize image/svg+xml upload (I need to do some interactive diagram).
Everything works fine in a standard wordpress (I load my file in an object tag), but in my multisite config the file is automatically downloaded. I guess that the problem come from the ms-files.php and the multisite HTACCESS file.Is there any solution to have this file showed normally ? I assume the problem is the same for swf, or maybe mp3 file ? (I didn’t tested).
Thanks in advance.
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Multisite media’ is closed to new replies.