Unable to upload to Media Library
-
A few weeks ago our website started giving the following error message when trying to upload an image to the WordPress Media Library.
“filename” has failed to upload.
Missing a temporary folderNo change were made the the WordPress code, theme, or plugins prior to this issue occurring.
After doing some research we found two potential fixes for the problem which we have tried but unfortunately did not resolve the problem.
Fix 1: Created a folder named ‘temp’ in the wp-content folder with permissions set to 777, and added the following line to the wp-config.php file:
define(‘WP_TEMP_DIR’, dirname(__FILE__) . ‘/wp-content/temp/’);
Fix 2: Created a folder named ‘temp’ in the directory root with permissions set to 777, added the following line to our php.ini file in the directory root:
upload_tmp_dir= your/path/to/public_html/temp/
We created a subdomain on our server, spun up a fresh install of WordPress using the out of the box theme/plugins, and still proceeded to get the issue when uploading images.
Has anyone else experienced this issue before, have a resolution, or able to suggest what we could try next?
Thanks in advance.
- The topic ‘Unable to upload to Media Library’ is closed to new replies.