There's an issue when Wordpress doesn't use the year/month file structure in the uploads folders, when trying to upload intermediate images to the container, $upload_folder_path is wrongly set to / ./ and that causes the image doesn't get uploaded and by consequence, just the original file is getting uploaded correctly.
By checking if the option is disabled we can set $upload_folder_path to / which fixes the issue
This fix closes #229
How to test the Change
Go to Settings > Media and uncheck "Organize my uploads into month- and year-based folders" option
Go to Media
Upload an image
Check the container
All intermediate images should be there
Changelog Entry
Fixed - Bug fix
Fixed issue with unchecking year/month option under Settings > Media causes intermediate images not being uploaded to the container
Credits
Props @hugosolar, @glowmedia (for testing and reporting)
Description of the Change
There's an issue when Wordpress doesn't use the year/month file structure in the uploads folders, when trying to upload intermediate images to the container,
$upload_folder_path
is wrongly set to/ ./
and that causes the image doesn't get uploaded and by consequence, just the original file is getting uploaded correctly. By checking if the option is disabled we can set$upload_folder_path
to/
which fixes the issueThis fix closes #229
How to test the Change
Changelog Entry
Credits
Props @hugosolar, @glowmedia (for testing and reporting)
Checklist: