Media Upload Error After Update of WordPress
I was updating WordPress the other day. and afterward was unable to upload anything to the media library.
Here’s the Error:
Unable to create directory uploads/2023/01. Is its parent directory writable by the server?
I had attempted to edit permissions on the uploads folder and subfolders, which ended up not being the issue.
I found this solution, which worked out great.
Edit your wp-config.php, adding the following line.
define( 'UPLOADS', 'wp-content/uploads' );
before these lines:
/** WordPress absolute path to the WordPress directory. */ if ( !defined('ABSPATH') ) define('ABSPATH', dirname(__FILE__) . '/'); /** Sets up WordPress vars and included files. */ require_once(ABSPATH . 'wp-settings.php');