I’m trying to update WordPress to the latest version which install on my local drive. When I click on the Update option, the appropriate files are being downloaded to my computer, but they’re going to a directory that doesn’t exist.
The detailed error message is as below:
Warning: unlink(C:\wamp64\www\wordpress/apps/wordpress/tmp/wordpress-5.9-new-bundled-ahdNU4.tmp): No such file or directory in C:\Users\A1034455\wordpress\wp-admin\includes\file.php on line 1059
Download failed: Destination directory for file streaming does not exist or is not writable.
The tmp folder mentioned in the error message (C:\wamp64\www\wordpress/apps/wordpress/tmp/) doesn’t exist. I can’t find any related settings in the
How can I configure where the WordPress is downloading content to a directory that does exist instead of something that’s pure fiction?
Follow the below solution steps to resolve fix WordPress update download failed due to destination for file streaming does not exist or is not writable issue.
This is the config line to add or edit in wp-config.php
define('WP_TEMP_DIR', dirname(__FILE__) . '/wp-content/temp/');
the line must be before
/* That's all, stop editing! Happy blogging. */
To know if WP use your constant
Make sure the directory exists.