This has been answered Hook filter to change wp_upload_dir() path in multisite , including code to hook into the upload_dir
hook.
Note that there is a setting in wp-config.php for the ‘base’ upload folder
define(‘UPLOADS’, ‘wp-content/myimages’);
So with this code, the uploads folder is wp-content/myimages
.
But, that changes the place WP looks for the media, so you will have to move existing media files to the new location, if you use that setting to change the ‘base’ upload folder.
Related Posts:
- How to stop unlink images when remove a site or user
- Multisite media library uploads broken images
- Using one media library for a multisite network with WordPress 3.5 media library
- Upload path/URL weirdness for the main blog of a multisite/network setup
- Organize uploaded media files
- Uploading Images to Multi-Site Causes Failure to HTTP Error
- Broken image multisite
- Fixing media links after importing to multisite
- Images uploading to wrong directory after changing to multisite
- Why are images not displaying?
- Why are images uploaded to main domain, when using multisite with different domains?
- Media library not loading after switching the main site of multisite
- wordpress multisite subsite rewrite rules not working for videos
- Prevent images on self-hosted WordPress from being served from WordPress.com
- Multisite Pull Recent Image Attachments from Blog ID
- Upload images from one site to another in Multisite
- Images don’t show up
- 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
- My Media Library is broken across all my subsites
- Copying media from multisite subsites to main website
- Show media-frame-menu on custom Media Frame
- Conditional Image Sizes for Use via Theme Customizer Upload Only
- Suspicious mesage appears instead of images
- Where to set individual blog quotas?
- wp_get_attachment_image_src on multisite
- Missing images after moving servers
- wp_get_attachment_image_src returns incorrect URL on multisite
- Automatically Insert Into Post when uploading Media
- unable to write to the database while uploading images
- How to migrate post media from stand-alone to multisite build
- Load media from another URL on a multisite install
- Admin Ajax returns “0 200 OK server error..” in Multi-site sub-site
- Showing All Media from All Multisites
- New wordpress uploads are broken
- Crop image sizes directly from Media Library across network (not attached to post or page but sidebar)
- ACF Image Object Sizes Issue on Multisite
- Multi site and media uploader
- Images on WP Network’s subsite appear only if accessed via main site’s url
- All links to images are broken in a subdomain multi site environment
- How do I remove/delete an old super admin user?
- Which filters or actions to use after a media upload and delete?
- How will self-hosted WordPress work with Google Page Speed Service?
- What is the best way to load the WP environment in a subdomain of my multisite WordPress install?
- Benefits or Problems for using Sub-Directory vs Sub-Domain install of WP Network
- What methods should be used to fend off splogs in a multiuser install? [closed]
- WordPress 3 Multisite using subdomains.- DNS on Cpanel question
- Transfer Subdomain site to Multisite setup
- WP REST API – Multisite – get posts from all sites
- How to Login Once to an Entire WP Multisite Network
- NGINX Multisite Rewrite rules
- On Multisite: Loop to Show First Four Images of Recent Posts Across Network
- Get source from the_post_thumbnail
- Subsites in Multisite installation throwing 404 error on wp-admin in IIS 7
- Identical members roles on all sites in a multisite
- How do I maintain static directories on multisite subdomains?
- WP-CLI can’t list posts
- Woocommerce and different checkout field for different countries
- Why is multisite rest API keep giving me results for root site only?
- How to stay logged in on a multisite with different domains?
- Custom Post types and Custom fields in Multisite
- Login on Multiple Sub-Domains without Multisite
- Use another author.php if different multisite subsite?
- Subsite with different template, and content
- What is best forum script available to integrate with wordpress?
- Multisite installation not in root – how to make live?
- Multisite – One user allowed access to all sites?
- Can’t view network plugins.php or upgrade-core.php on multisite
- Multisite: Retain awareness of what posts came from which site?
- Merge Multisites with Shared Network Media Library
- Multisite – Looking for ideas to best manage a main site change
- Networksite/multisite is disabled ?, Why?
- My subdomain on WordPress Multisite has gone
- Multisite WPLANG won’t save
- How to display users with posts published between two dates (Sorted by Post-Count) [Multisite]
- Child Theme Based on Toolbox Not Found
- Create a CSS file in plugin folder when theme is activated
- WP MultiSite: Can’t select database error after changing to new domain
- switch_to_blog() not functioning while querying post_types, Why?
- Different site different div content – Multisite
- Multisite sites output on a single page
- can’t create user without email for an author after converting single site to multisite
- Multisite cookies are being shared across domains unwanted
- Redirect Function Prevents Images from Showing in Front-end Media Uploader
- multiple domains point to same site on WP-MU
- Max number of sub folders
- wordpress multisite config issue needs help
- Domain mapping breaks some plugin scripts and css
- How to force WP to create a users table in multisite configuration?
- Creating a stand-alone site from a WordPress sub site
- Multisite read_more link displays URL twice
- Missing Images in Uploads Directory (Server Only)
- Updating themes customized by users
- WordPress and multisites, the rigth choice?
- Best Way to Setup a Network of WP Sites?
- Trying to create site-wide Active Directory sync with Multisite
- Delete all thumbnails & regenerate them?
- How To Get Feature Image from Blog in Same WordPress Multisite Blog on the Parent Blog?
- The wpmu_blogs_columns filter is not working