Defining custom uploads directory is broken in WP 4.5 (wp-config)
-
Hi all, after upgrading to WP 4.5, the following method for customizing the location of the default “/wp-content/uploads/” folder no longer seems to work: https://www.wpbeginner.com/wp-tutorials/how-to-change-the-default-media-upload-location-in-wordpress-3-5/ (or here: https://codex.www.ads-software.com/Editing_wp-config.php#Moving_uploads_folder) – (I was changing it to “/files/” instead, not that it matters ?? )
I tried resetting it manually but wp-config.php doesn’t seem to recognize:
define('UPLOADS','files');
…or…
define('UPLOADS',''.'files');
…when placed directly after…
require_once(ABSPATH . 'wp-settings.php');
…anymore. Anyone have any clue why?This is leading for my code to request:
example.com/wp-content/uploads/2016/04/image.jpg
…when the actual location is:
example.com/files/2016/04/image.jpgMany thanks! ??
- The topic ‘Defining custom uploads directory is broken in WP 4.5 (wp-config)’ is closed to new replies.