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 can I get all attachments by a user on a WP multisite network?
- Media Attachment Pages Redirect to Media Files After Migrating to WordPress Multisite
- Domain not redirected correctly with WordPress Multisite
- What is the optimal solution: WP Multisite vs InfiniteWP
- Best way to have multiple custom domains associated with a site within a multisite installation
- Multisite network admin login redirect
- Hook into ‘admin_url’ but only on Mysites admin bar menu
- Add file at the root of mapped domain in multisite
- Seeking solution to sync wordpress sites with Server
- URLs for (MultiSite) link images are always relative
- How to post same content on multisite?
- Is there any hook to validate google recaptcha dislayed in wp-signup page [in WordPress Multisite]
- wp-cli core install –skip-email and –skip-config flags not working on MAMP unknown parameter
- How to add a link of “one” website in posts of “second” website in multisite WordPress
- Primary (root) blog of multisite installation forbidden (403)
- Themes are visible in Network, but invisible in sites
- Duplicate/Clone a Multi-site But Use Same Images & Resources?
- logging out with/without confirmation – single site, multisite
- How to disable Gutenberg editor from Multisite Admin panel?
- Multisite wp-admin redirecting to main wp-admin using NGINX
- WordPress Multisite VMware copy for dev use not allowing loggin
- Multisite subdirecty added inside URL to uploaded files
- local wordpress multisite not working on AWS development server “error establishing database connection”
- Displaying Multisite ID number
- WP Multi Site – configure Sub domain pointing to parent sub directory
- Timber\Image an image from another site in network
- Redirect a user roll to a page after login in mutlisite network
- customize admin bar (desktop+ responsive)
- WordPress Multisite – Domain Mapping
- Register a user only to the root blog – WP Multisite
- When inserting an image in a post, how to link the image to a resized URL instead of the full image URL?
- How do I get WordPress to create resizes of a supplied default image in a theme?
- Create multiple clones of site with different branding?
- Multi-Network without plugin
- WordPress Multsite Network site under another network site
- 2 wordpress, 2 different themes, some pages with the same content
- WordPress Multisite with Wildcard Certificates not mapping correctly
- Post images are not displayed in media library
- Created child theme from Themegrill Flash-Pro and the child theme is blank
- Looking for most efficient way to ‘deploy’ single wordpress page to multiple external subdomains
- Subdomain multisite instances having same content
- Fix nested WordPress multisite resource path?
- Can I add a rewrite rule in htaccess to remove the multisite subdirectory from the URL?
- allow multisite in the installation process
- Using WordPress multisite for subsites only
- WordPress multisite REST API connection refused with android – redirects to home page when using IP address in Postman
- Configure redirects with web.config
- How do I split a single WPML site with 6 languages (English is Main) into Multisite with 5 subfolders
- Multisite installation steps?
- No debug log for WP multisite is created
- Error establishing a database connection after moving local wordpressmultisite from one directory to another
- Multisite network subdomains doesn’t work
- Pass form inputs to page content
- MULTISITE: Password issue and Error Cant access site
- WordPress Multisite with Subdomain, make the subdomain look like another domain
- Will resetting my database affect other sites on my multisite WordPress install?
- Login issues on WordPress Multisite and domain mapping
- trying to install a wordpress multisite in a subfolder and have custom subsite urls
- Can I replace the “Upgrade Network” with SQL query?