Quick summary
Note: I forked and built this repository and tested it on WindowsOS. So this issue may be specific to Windows OS.

Depending on how the media was uploaded, one error can occur here:
https://github.com/WordPress/wordpress-develop/blob/2074392c5cb15be2dec399c2a6efb2c60fbb671c/src/wp-includes/functions.php#L2395
After further investigation, I realized that the wp_upload_dir() function returns a path that does not exist.
var_dump( wp_upload_dir() );
array(6) {
["path"]=>
string(40) "/var/www/html/wp-content/uploads/2024/04"
["url"]=>
string(48) "http://localhost:8882/wp-content/uploads/2024/04"
["subdir"]=>
string(8) "/2024/04"
["basedir"]=>
string(32) "/var/www/html/wp-content/uploads"
["baseurl"]=>
string(40) "http://localhost:8882/wp-content/uploads"
["error"]=>
string(102) "Unable to create directory wp-content/uploads/2024/04. Is its parent directory writable by the server?"
}
I have WordPress installed on D:\_wp-studio\, so these paths don't exist.
Steps to reproduce
Try to upload media on WindowsOS.
What you expected to happen
The media will be uploaded successfully.
What actually happened
An error will be logged.
Impact
One
Available workarounds?
No and the app is unusable
Platform
Windows
Logs or notes
- OS: Windows 11
- Studio version: 1.0.0
Quick summary
Note: I forked and built this repository and tested it on WindowsOS. So this issue may be specific to Windows OS.
Depending on how the media was uploaded, one error can occur here:
https://github.com/WordPress/wordpress-develop/blob/2074392c5cb15be2dec399c2a6efb2c60fbb671c/src/wp-includes/functions.php#L2395
After further investigation, I realized that the
wp_upload_dir()function returns a path that does not exist.I have WordPress installed on
D:\_wp-studio\, so these paths don't exist.Steps to reproduce
Try to upload media on WindowsOS.
What you expected to happen
The media will be uploaded successfully.
What actually happened
An error will be logged.
Impact
One
Available workarounds?
No and the app is unusable
Platform
Windows
Logs or notes