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
- Moving media library to the media library of completely different site
- convert post title to image
- Can you check if a post WYSIWYG field has an image in it?
- how to put image and text on same line [closed]
- Different background images on different sites [closed]
- Bulk-add featured images in posts with no featured image
- Upload media only to DB
- How to get image from media library with URL [duplicate]
- Google Page Speed Insights – Optimize Images
- WordPress Creates Unused (Unregistered) Image Sizes
- Custom image uploader without widgets
- How to upload and style svg logo?
- Weird failing request
- Is there a way in WordPress to convert images to WebP without a plugin?
- Partial img lazy load with WP 5.5
- Can’t see images in posts after migrating site to subdomain
- How to change the catalog product image size by product id?
- are unattached media files a problem?
- How to setting up the custom size thumbnail for wp_get_attachment_thumb_url()?
- Disable image rename on upload
- Development environment and “production” environment domains
- HTTP error when uploading an image
- Images dont show up on an iPhone [closed]
- Moving an image to the side [closed]
- Why am I getting and error from wp_get_attachment_image_src?
- How can i identify media uploaded to my website that is not being used anywhere anymore?
- Placing a featured image into header
- Function to grab specific image IDs from media library.
- image URL changed in wordpress
- How to get post id of first child of the same post type?
- Maximum image width/height?
- Product Images Making a Column
- How can we upload common images only to AWS S3 using WordPress?
- What’s are some best practices for responsive images (e.g. for section headers)?
- Shortcode not work in picture source srcset tag
- wpdb function for filtering the images by title
- Recreate the upload folder from a website without having access to the backend/cpanel/filezilla directly from the website
- how automatically show the image title before the image caption/description in a wordpress gallery?
- change the h3 subtitles of the wordpress gallery shortcode
- How to echo images Urls from a wordpress post, that are relally in the post
- Adding Post Thumbnail to Metro Pro Theme
- media_handle_upload() with 1 image under 1Mb chokes my server and returns timeout error
- WordPress does not load most theme images
- Hot Linked Own Images
- imported post image as normal image instead encoded image
- Updated wordpress missing image upload area
- convert images and media url into blob url
- get_post_gallery with Gutenberg
- Site not showing Image in WordPress and in HTML code also which uploaded in root what is the solution for this?
- How to set a post featured image from an already made custom field
- How to find the largest images in wordpress post
- New portfolio items appearing smaller on the grid
- Alt attribute is not showing while the value is given in Media
- Alternative image sizes are too large
- Image automatically resized
- How to call thumbnail by aqua resizer in best practice. Specify image dimensions’s notify from GTmetrix
- WAMP install acts different than live install when uploading images
- Images Wont Display After Importing From Old WordPress
- Image thumbnail on single product issue | WooCommerce
- How do i replace the title attribute of img tag with the image caption
- How can I hook and edit on the fly an image uploaded
- Anomaly with response coming from XML RPC Api get Post (integer out of range)
- Make all images displayed in single.php a certain size
- Why are my ‘medium’ images the wrong size
- How can I hide previous_image_link() on first attachment page?
- wp_get_attachment_image_src
- I am trying to get metabox image with custom size
- Removing image dimensions from `the_content`
- Theme files and imagesnot loading on a mobile device
- Guaranteed Image Sizes
- Is there a different way to grab a thumbnail image than this?
- Multiple gallery thumnbnails on one page
- Change image link in excerpt to point to post
- Putting the title attribute in image tag — Snapshot Theme from Woothemes
- Post migration – images do not display
- Change the avatar ratio?
- get_theme_file_uri function not showing background image inside data-setbg in html
- wp_handle_upload Image sizes
- How to show file type of featured image?
- How to give path to image in wordpress?
- Make Jetpack CDN to filter/ignore images based on SRC [closed]
- images map on website not working
- WordPress + REST API + featured_image
- Blurry Images on my Website
- Define how an attached image is rendered
- Control the srcset, image size for get_the_post_thumbnail
- Certain images loading from /wp-admin/ which our server is blocking, resulting in a 403
- Display image title and caption on posts and pages
- Image editing no longer works after moving to a new server