[Bug] Image edits to thumbnail not handled correctly
-
When editing an image using standard WordPress, the save calls windows_azure_storage_wp_update_attachment_metadata. This uploads the main file & the sizes.
When editing the file, and just updating the thumbnail, it seems all sizes and the original image is passed through the same function (not just the edited one).
This causes the upload to fail as the main image doesn’t exist on the local server as it’s been uploaded previously and since removed.
The sizes kind-of already handle this, because it checks that the file_exists before sending it to putBlockBlob. I’d imagine a similar thing needs to happen around the main image upload, and the unlink further down.
- The topic ‘[Bug] Image edits to thumbnail not handled correctly’ is closed to new replies.