Do you care about the admin restrictions for serving these files? Without seeing your exact error my guess would be that in ms-files.php, WordPress is not fully loaded at the point where is_super_admin() is called.
So again if you don’t care about this super admin check then you can modify .htaccess to serve the files directly…no need for ms-files.php at all!
RewriteCond %{REQUEST_URI} ^/files/(.*)
RewriteRule ^files/(.*) wp-content/uploads/$1 [L]
Related Posts:
- Broken image multisite
- Retrieve images from parent site to child site using current shortcodes
- Uploaded images not displaying in network site
- Graphics and Formatting Not Loading in WordPress on IIS
- WordPress Multisite: Images moved to /sites/1?
- i want to change URL of WordPress image or rewrite in runtime
- My subdirectory sites images (except webP) are throwing to 404 page even they are exist
- Multisite image URLs incorrect in editor
- How To Get Feature Image from Blog in Same WordPress Multisite Blog on the Parent Blog?
- Some images not loading after changing IP on local wordpress install
- Images Not Displaying On Page or Media Gallery After Multisite Migration
- How to change image type for specific size?
- What’s the proper way to find and remove duplicate images from posts and the media library?
- Mixed content warnings after changing site adress from HTTP to HTTPS
- add_image_size() zoom-crop
- Insert an image into a post by API
- Multisite behind Varnish
- Which are precisely the predefined image sizes?
- Creating a rotating header /image slider using theme customization
- Use Media Library to manage galleries like Nextgen (with folders, albums, collections, tags, categories, terms…)
- Change Image URL to a CDN
- Slider image issue in wordpress
- Getting custom size image URL
- Retrieving images from a NextGEN gallery
- Query for recent images across multiple posts
- Getting alt text of featured image
- Get image alt attribute just by image URL
- Is there a way to get attachment data?
- How to resolve – IE 6 ignores img “width” properties
- WordPress is stripping the Alt tag’s quote marks from images where Alt is not set, but leaving the word ‘alt’ creating problems for ADA compliance
- WordPress reduces the full size image and uses it as the original
- Show taxonomy list with taxonomy images ( SOLVED)
- get_children() not working properly – Only on one post?
- Warning: getimagesize() [function.getimagesize]: http:// wrapper is disabled in the server configuration by allow_url_fopen=0 [closed]
- Is There A Way Of Using the_post_thumbnail() to Pull In A Specific Image From The Media Library
- How to add data attribute to all images in posts [closed]
- How to stop images from being wrapped in tags?
- Output random (custom) image size
- WordPress crops images differently on retina screens?
- Image thumbnails not available post migration, but still accessible via direct URL – DB issue
- How do I create an alternate RSS feed for tags with custom image sizes for MailChimp?
- Exclude images from “inserted into post” when trying to get attachments
- Move Image Captions Inside Link ( tag) if Added
- Sharing images to social media – issue with aspect ratio
- How to add custom classes to figure element only if image has caption?
- How to add an image to a custom url?
- Configuring Propel to Work with Multisite
- How to add images to a post without inserting them into the content area of the post editor?
- Is it possible to reduce image filesize on the fly (when users enter my website)?
- Why WordPress strips scr string from img tag off?
- Random image loader
- insert image alongwith with custom data via a frontend form
- Create a link to full-sized image attachment?
- Get image path : image is upload but not attached
- Timthumb.php image gallery not working on Multisite WordPress
- What sense makes medium_large_size_h => 0?
- Images not showing in media grid view (but showing in list view)
- Emoticons not working on my site
- How to use getimagesize() of image upload?
- limit number of images shown from gallery
- photo gallery implementation like tmz
- How to Automatically import external images to Upload
- How to join Caption AND Description Meta Fields as one combined-caption in Image Block
- Fullscreen Page Background without Plugin [closed]
- how to regenerate webp et-pb-portfolio-image
- How to avoid images appear as post in google search?
- When upload a PNG a noise appears in the thumbnails
- How to stop TinyMce from converting image url into ?
- How to automatically load an image inside the post, since it is present in uploads folder
- Generate links on all images in posts – is there a hook?
- Decide how Hero image appears on mobile
- Broken images/videos after migration – DIVI theme- works ok on Mac OS
- Can’t figure out how to get space around an image? [closed]
- Show images from TEXT section on PAGE wordpress
- Where to add my code to auto attach images to existing products
- Set WordPress to Create different images format later, not during upload
- If file exists with page slug name show image else nothing
- How might one programmatically set the link for all images in all posts?
- page displaying media caption shortcodes
- Display different Images depending on the current day
- How to add a credit line to a photo caption
- Broken image URL
- Uploading Images for a section
- Some images suddenly not appearing
- WordPress: Preload next post images
- Image not showing in an archive page
- Set add_image_size() greater than content width in media box
- All links to images are broken in a subdomain multi site environment
- Remote Image (from URL) as Media Library element
- Theme using masonry layout script rendering overlaped images in Google Chrome [closed]
- Why is inline CSS added to images automatically? [closed]
- Delete all thumbnails & regenerate them?
- Can I turn an image into a button?
- Why are some SVG-images not visible in my footer?
- Gutenberg block HTML image rendering override
- image_get_intermediate_size always returns false
- Change of displayed images for webp versions
- How do I test my WordPress subdomains on AWS during migration?
- How do I add text or a message below the featured image in wordpress?
- CSS how to target the caption of one individual image?