Manage cookies that are used for advertising, such as ad personalization, remarketing, and ad effectiveness analysis.
2.14.1.1.6. Unable to create directory when uploading media file
Attention!
We strongly recommend that you create a backup of the database before making any changes, so that you can revert any changes you make.
When uploading media files to the library via the WordPress admin panel, you may encounter the following error:
To resolve the issue, you can try the following:
- Check the site's configuration file to find the name of its database.
- Open site database in phpMyAdmin.
- In the
wp_optionstable, find the row where theoption_namecolumn contains the valueupload_path. To do this, you can run the following SQL query:SELECT * FROM `wp_options` WHERE `option_name` = 'upload_path' - Clear the field in the
option_valuecolumn in the row you found. - Check the media file upload.