setting custom upload folder
-
I have a custom upload folder already set and upgraded WordPress to 3.5.1. I was building my website and decided to finally upload some test images and realized that WordPress will create images in the defined directory, but is unable to access it. Printing out the
wp_get_attachment_image_src
array shows it’s pointing to the correct path, but is returning a 404. When I try to delete the image through the media manager, it cannot physically delete the images.WordPress is installed in the root directory and I set the uploads folder to another folder in the root directory. I am using the Roots Theme which sets the upload directory to the root (which is also what I want) with functions.
When I change the upload folder back to default, the option to modify the setting disappeared, but newly uploaded images work.
It is my understanding that it was only the UI to modify the setting was removed from new versions of WordPress.
I tried to define the directory in wp-config and set the admin option to blank to remove the UI, but same thing. WordPress cannot display the images in the admin panel or on the site because of 404 errors. It can, however, delete the files physically when I do it through media manager.
- The topic ‘setting custom upload folder’ is closed to new replies.