(Converting my comment to an answer.)
Since you store themes and plugins in that folder as well, try setting the WP_CONTENT_DIR
constant instead. (Always prefer absolute paths when possible.)
As to your specific case, why it worked in one file but not in another – this will probably involve more debugging, checking where exactly WP uses which constant, etc. If setting WP_CONTENT_DIR
solves your problem, remove UPLOADS
and work with it.
Related Posts:
- How to show all available images in WP’s media library when using the Polylang plugin?
- Saving Media – Which Hook is Fired?
- retrieve custom image sizes from media uploader javascript object
- Is it possible to allow zip files to be uploaded in WordPress?
- WordPress monthly upload directory owner set to root
- Set a maximum upload count for users on a specific user role
- How to set custom upload directory per user after moving content directory
- Importing WordPress Attachments Into Custom Directories In wp-content/uploads/
- add_image_size creating lots of images (of various sizes)
- This file type is not allowed. Please try another
- File Upload Permissions
- Retrieving JSON data in ajax request from media uploader
- How to disable WordPress Media resize different size version?
- insert post & Upload post thumbnail from the front end using ajax
- how to add new .webm mime types
- how can i simple change upload folders to %year%/%month%/%day%?
- How can I save the original filename to the database?
- How to side load an image from a service
- Regenerate thumbnails unexpected resolution (96 x 96)
- How to host different file formats/types for a media attachment without creating multiple attachments?
- Can’t write pdf file to upload directory using FPDF
- Change default uploads file using wp Skeleton
- Change default from “Attachment post URL” to “File URL” in Add Media
- how to use media library [closed]
- Adding Adobe files to a wordpress site [closed]
- Unable to Upload Images on Local Windows Install
- What types of files can I upload with the WordPress Uploader?
- Replacing Images in Media Library
- Creating a feature to upload multiples images in the Theme Options?
- Copying uploaded images not working in wordpress
- Disabling direct access to images using .htaccess
- Restrict WordPress Media Library for a specific user role (users can only see/select own media)
- Manual filename while uploading attachments
- Convert (-) and (escape) signs to (_) when uploading files on wordpress media library automatically
- Make WordPress compress full size image?
- Move files from flat upload directory to organised by year / month
- Can’t manipulate media uploads
- Alternative or workaround for wp_insert_attachment
- How to limit the number of simultaneous media uploads?
- Custom media uploader not showing library
- Symbolic link for uploads in wordpress
- Upload iPhone video clips to blog via native WP app
- Process uploads with phpThumb before generating thumbnails
- Resize existing library images
- WP 4.3.1 new install on localhost missing php.ini [closed]
- How would I change the 10 MB limit to 5 GB in this script?
- Media Library Won’t Display Any Images
- When does WP resize an image file
- More Fields & Media Upload
- How does wordpress handle media files?
- Upload Custom Mime Types in WordPress (SVG, WebP)
- “Sorry, this file type is not permitted for security reasons.”
- Can upload through FTP but not through WP uploader
- upload_max_size doesn’t change
- Upload and attach to a post multiple image files [closed]
- Changing titles in Uploader for “Posts”
- WordPress upload file action hook
- Back up uploads folder outside of wp-content?
- Batch upload to create posts each with one image, headline, and body text
- Control resizing of uploaded images
- How to upload prc file type?
- How to add an upload image button (just like the one in the Custom Header) in the Theme Options I just created?
- protect files from downloading on other than my site
- WordPress File Upload Form Returning Null
- How to add CSV upload functionality on the edit page of a Custom Post Type
- WordPress changing media file name upon upload
- How to remove media by filename?
- Restrict Users to Only Edit Media Owned by Users in Their Role
- media_handle_upload() returns Specified file failed upload test
- How to upload a file and have it available on the post for download?
- WP media upload issues
- Increase .htaccess file upload without prompting error
- WordPress upload folder stuck in 2017
- Media uploads error
- When upload to media it says an error occurred but the file is uploaded
- Add file upload with validation to custom form
- How can i link my featured image to be clicked and the file will be downloaded
- Nginx – WordPress Upload only images rule
- How to get images to show in Media when saved Via PHP
- wp.media – media uploader – how to destroy instance of modal?
- Add a image uploader in the posts page backend
- Uploaded image doesn’t show up in media library
- Using media-upload.php – requires user to have edit_posts capability?
- Custom upload directory for each file only for current plugin
- Issues with WordPress 3.9.6 media libraries on XAMPP
- WordPress problem uploading new media : File is empty. Please upload something more substantial
- limit the access to uploaded files
- Private file system for attachments
- Used Duplicator to transfer a site. Now my media uploads aren’t working
- Insert into post or
- Metabox with file upload to custom directory
- How to force attachment size for every post
- Is it possible to upload multiple images via Media Library tab in Thickbox I’ve created?
- How to upload an image using media uploader and return the image link to javascript?
- Link or button to open the media manager from frontend
- Attach unzipped files to wordpress
- Unable to create directory
- Rename upload images during upload
- How can I directly upload smartphone videos to blog and comments?
- Image in binary in the data to WordPress media library