if you need to change default media upload location,you need to edit the wp-config.php
file located in the root directory of your WordPress installation. If you want upload directory to be wp-content/files
then you will need to place the following code in wp-config.php
define( 'UPLOADS', 'wp-content/'.'files' );
If you want the upload directory to be outside wp-content, like http://www.example.com/files/ then you need to set upload path in wp-config.php like this:
define( 'UPLOADS', ''.'files' );
For exstining images:-
Copy all the exstining images of uploads folder to new folder which has set in the wp-config.php
file.
The above information is only to Change the Default Media Upload Location.
Related Posts:
- How to Protect Uploads, if User is not Logged In?
- WordPress Uploads Folder can’t be Written to
- Restricting access to files within a specific folder [duplicate]
- Failed media import
- Change WordPress’ media upload URL?
- Disable drag and upload in Media Library
- Organizing media uploads
- Moving existing media items to new upload path structure not updating full URL path
- Cannot upload anything via wordpress
- Rotating image does not work for custom image sizes
- Limit number of images to upload in wp.media function
- WordPress media upload automatic refresh
- Upload video in custom folder
- Set Maximum Width for an uploaded image
- Too slow Image upload in WordPress Media Library as image number increases
- Whats wrong with my wp gallery?
- How to Protect Uploads, if User is not Logged In?
- Handle image file and save it to media
- cant able to upload media to my wordpress blog
- Customize WordPress Upload Directory
- Another “Sent Headers” Error w/ Missing Temporary Folder
- How to Fix HTTP Error When Uploading Images?
- How to add new tab to media upload manager with custom set of images?
- Update media library files after upload via FTP
- Reject upload of wrong-sized images using the Media Uploader
- upload_async.php returns 500 error
- What is the best practice for renaming WordPress media files?
- Refresh wp.media after ajax call
- Changing the media library default tab
- wp_editor with media buttons
- How do i upload an image and return the image id?
- Uploading Images to Multi-Site Causes Failure to HTTP Error
- Run script after clicking Set Featured Image in Media
- Uploading non-media files?
- Media > Image Sizes aren’t being applied to uploads
- wp_temp_dir does not change the /tmp temporary default directory
- Maximum upload size changes in php.ini ignored – How to remove upload size limit?
- Media library storing files in uploads not folders within in uploads
- Can’t edit media details in new role
- add_image_size landscape or portrait
- What table is the media’s sort order stored?
- How to delete uploads not in media library?
- How to bulk Edit Dates in Media Library?
- Rename media files generated during upload
- WordPress Built In Dialog Box For My Plugin
- image in my post disappeared after I upload website to remote server
- Plugin or method to delete uploads not in media library?
- How do I change the upload file size limit in single-site wordpress install?
- Multisite – Images often getting uploaded to the wrong month directory
- Create Media via REST API from Android Application
- wp_generate_attachment_metadata is creating an empty array
- Multiple media uploader buttons target only one input on the same page
- Custom icons in media library
- Overwrite media matching post title using WP CLI’s media import command
- Convert (-) and (escape) signs to (_) when uploading files on wordpress media library automatically
- Move files from flat upload directory to organised by year / month
- Can’t manipulate media uploads
- Creating subfolders in the media library
- Media Library empty after server move (exact copy of files and db’s)
- How do I get around “Sorry, this file type is not permitted for security reasons”?
- How can I manage and limit disk usage for each author?
- How can I modify the media upload form fields?
- WordPress Media Uploader custom Javascript not working
- Media changes not updating posts
- How does wordpress handle media files?
- Use rich text editor in ‘Edit Media’, for attachment media description
- How to disable Media Library?
- How to disable drag-and-drop upload function in Media Library?
- upload_max_size doesn’t change
- Adding .mov files (not from YouTube) [duplicate]
- Control resizing of uploaded images
- Insert into post button missing on custom post type
- How to get a list of all attachements urls for every post of a wordpress installation?
- Media permalink to go directly to uploaded PDF, instead of a media page with a link
- cant upload media/pictures to my wordpress site, cant upload anything to my database
- WXR file – Media import failed – how to force import?
- How to remove media by filename?
- media_handle_upload() returns Specified file failed upload test
- WP media upload issues
- multiple image upload using wp_enqueue_media
- Media uploads error
- Media library and Upload media problem
- WP Cli + xargs fails
- Hide download button from audio player
- wp.media – media uploader – how to destroy instance of modal?
- Only current gallery images with get_attached_media
- Issues with WordPress 3.9.6 media libraries on XAMPP
- Post Type Upload Directory – {post_type}_upload_dir filter
- Used Duplicator to transfer a site. Now my media uploads aren’t working
- Add hyperlinks in media description
- ACF Gallery & mqTranslate, Title and Description not displaying in other languages
- Can somebody explain this mediaelement and audio tags
- Custom image sizes
- How to upload an image using media uploader and return the image link to javascript?
- WP Feed namespace attr issue
- When I upload any media file it says “The uploaded file could not be moved to wp-content/uploads/2017/04”
- Help with WordPress slider
- Inserting Media on New Post But Hides Previous Uploads for Editor/Contributor
- Updating Media Library PDF’s in bulk
- upload image to wordpress media library failed for custom post type