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?
- How can I get all attachments by a user on a WP multisite network?
- 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)
- Enabling custom file and mime types in multisite
- Unable to upload files greater than 1MB in size in Multisite network?
- UPLOADS constant not working in WordPress Multisite
- Permalinks in Multisite not working
- What is the best way to build a network of WP sites that share the same membership area?
- WordPress multi user registration sites
- Generate aggregated feed from member blogs
- Cannot login to admin panel in multisite install if subdomain is added to hosts file
- Common login for websites belonging in different networks
- How to give “author” user role appropriate capabilities to add PollDaddy polls? WordPress multisite
- iis6 multisite and permissions
- Loop issues when creating custom query for media uploader
- WP Multisite: Do a function after blog is activated
- Activate blog hook
- rename index or homepage
- Change identical page for every site in multisite
- WPMU Domain not pinging
- Registration Page
- Multisite and users being listed on network administration dashboard and not main site dashboard
- How to remove index.php from a tag or archive page URL in the root blog?
- There is no featured image in my post in wordpress multisite theme [closed]
- Can we able to post blog on another WordPress blogsite?
- Multisite: should /blog go to a 404 page?
- Setting up wordpress on a hosting server for the first time
- Should I go for Multisite or separate WP Installation?
- In a loop, do not display content that does not have a thumbnail
- Post migration from one site to another site in a network
- WordPressMu network with private sites
- Not being allowed to use some terms in Add New Site in WordPress
- How to redirect root blog to a specific one in multilang WP?
- Are there any hosting companies that are already setup and configured for TLD domain mapping?
- Global site feed plugin/function for custom post type?
- Using a number for limiting registering or banning on multisite
- Multisite features
- How do I protect my uploads?
- Comment reporting for Multisite
- How to display the most popular posts of all the blogs in a mu setup? [duplicate]