Why not just use get_option('upload_path')
after your switch_to_blog( $blog_ID );
?
Does that do it?
Related Posts:
- why when I try to insert an image attachment along with a post does wp_get_attachment_url give me a very wrong file path?
- How to protect post attachments related to a custom post type, from non-logged in users, on 1 subsite of a multisite installation?
- Specific upload folder for PDFs in custom Post type in WP multisite
- Multisite stuck at 1MB for max file size
- Which asset URLs are acceptable in a “vanilla” MU install?
- Can upload doc and pdf but not ppt – not permitted for security reasons
- Listing of all uploaded files in network sites
- Upload path/URL weirdness for the main blog of a multisite/network setup
- Turn off ms-files.php after network setup
- Organize uploaded media files
- How can I have network sites not use year/month folders by default?
- How to upload images manually to wordpress?
- Sharding BLOGUPLOADDIR
- Advanced Custom Fields Multisite Upload/Imagery Issue [closed]
- How to make WordPress use new Upload Path settings in Multisite Setup
- Hook filter to change wp_upload_dir() path in multisite
- Uploading Images to Multi-Site Causes Failure to HTTP Error
- On Multisite: Loop to Show First Four Images of Recent Posts Across Network
- Shared upload folder in wordpress multisite
- Protect Uploads in Multisite
- .epub file blocked despite ALLOW_UNFILTERED_UPLOADS set to true
- How to get max upload size and accepted file types on multisite?
- Force Uploads Use Yearmonth to off (0) for all existing sites in Multisites
- Images uploading to wrong directory after changing to multisite
- Media library not loading after switching the main site of multisite
- How to stop unlink images when remove a site or user
- Multisite media library uploads broken images
- Upload images from one site to another in Multisite
- Image problem – Multisite image upload broken
- Allow Author on Site A capability to upload files on Site B in Multi Site
- Upload file type not permitted even if explicitly registered as upload_filetypes in the db (multisite)
- Where does multisite store image uploads?
- Error uploading files bigger than 58 MB
- WP doesn’t remove uploads from folder when removed from “Media Library”?
- Problem uploading images
- ‘Cheatin’ uh?’ Error When Attempting to Upload Images After 3.4 Update
- Multisite – Images often getting uploaded to the wrong month directory
- Merge Multisites with Shared Network Media Library
- Issue with wp_get_attachment_url() function for multisite
- Copying media from multisite subsites to main website
- Show media-frame-menu on custom Media Frame
- How to protect specific uploaded files from being accessed by non-logged-in users in WP-multisite
- Multisite sub-directories IIS 7.5 change media/uploads location
- Make uploads live outside of the WP folder
- Where to set individual blog quotas?
- Save uploads directly in the uploads folder (on a multisite)
- Multisite adjust uploads like (/upload/%alphanumeric_id%/%file_type%/%blog_ID%)
- Automatically Insert Into Post when uploading Media
- Can I use the same Folder name as a Multisite Blog?
- Hiding media uploaded by other users in wordpress multisite?
- Multisite missing tmp folder error while uploading
- Multisite subdirecty added inside URL to uploaded files
- How To Upload Existing WordPress Site To WordPress Multisite Using SSH
- Remove multisite part from wordpress multisite upload directory
- How to make the Broadcast plugin distribute images to several sites?
- How to set upload path after renaming uploads folder in Multisite?
- Shared upload folder in wordpress multisite with custom sub site domain pictures URL:s
- WordPress Multisite subdomains and sharing the same upload folder
- New wordpress uploads are broken
- Primary site file uploads failing, subdirectory subsites upload fine
- Multi site and media uploader
- MP4 upload ok, but HTTP500 if I update the file (multisite)
- Generate WP-CLI @alias for each site on multisite
- Shared Content but “Updatable” Through the Main Site
- How to customize the wp-signup.php for a multisite network?
- Change management solution for BP-based site?
- How to Structure WordPress for an Organization and its Departments?
- get_current_site() not returning site name
- Add custom user fields in Multisite USERS page
- WordPress multisite with multiple parent domains
- WP 4.4 – domain mapping for sites within a multisite network?
- How to disable the default WordPress redirect to non-www URLs?
- Bulk theme settings in wordpress multisite
- Should I use a multisite installation to achieve a multi-language site?
- Switch a single site to a multi-site
- migrate a MU sub blog to a single install
- Preferred method of setting user role only works on Main Site in Network
- Email Attachment from Form Submit
- Register submenu on network menu from the subsite
- Can’t access Dashboard of a Multisite WordPress. Chrome results in “ERR_TOO_MANY_REDIRECTS”
- How do I get the site url from a Block (within the block editor)
- Sub-sub folders of WordPress Multisite subdirectory
- Allow editors to switch sites (Multisite)
- moving tables between multisite installs
- Can I run multiple blogs from my local machine
- Trouble with SQL SELECT inside switch_to_blog()
- “Multisite support is not enabled.” After Multisite Config Changes
- Search returns “Nothing Found” on a sub directory
- Users getting linked unwanted to main mu in WordPress multisite (WPMU)
- Multisite: How to bypass wpmu_signup_user_notification and add my own notification logic?
- Changed singlesite to multisite, but new site shows Maintenance
- Multisite Demo Data for New Site
- Responsive Wordress Site – Serve different post types to each device
- How to apply specific plugins to affect all sites (Multisite Network)
- Is there a way to have wordpress 301 versus 302 urls by default?
- first load of the page gives 404 error
- Some Subdomains on a Multisite Install Not Found
- Multi site root site installed on subdomain, with child sites as subdirectories
- Integrating WordPress for blog and other content pages in a web app
- WordPress MU: Cookie error when trying to login on network WP instance