The person who manages the site’s content contacted me to say that a handful of images weren’t showing on the site. Looking into this, I can see that the images in question (e.g. /src/uploads/microgreens.png) are listed in the Large media tab within the Netlify admin, but that the SHA given there is not what I see when navigating to the file within the GitHub repo… though it was correct in a previous commit. For the previous commit the correct image size is shown, whereas for the new SHA the size is listed as zero.
This change in the SHA has come about through Netlify CMS somehow, as I’m the only person who commits to the repo outside of Netlify CMS and I haven’t done so for a week or so.
I’m unsure why the SHA has changed and how it’s ended up seemingly out of sync with Netlify Large Media. But I’m also unsure how best to fix – I could just delete and re-upload the images in this instance, but I’m concerned about it happening again and would prefer to know how to get the SHAs back into agreement.
This is continuing to occur and I’m unsure why – e.g. it’s just happened today with this image – the SHA of the file in the repo appears correct initially (i.e. matches what I’m seeing on the Large Media page in Netlify) but when the page is updated the SHA changes, the file size is recorded as 0, and the image stops loading.
So, we know what is happening but not why. The CMS is submitting an empty image as a commit.
Ideally, we want to be able to reliably reproduce this occurring to troubleshoot. If you have any other details to narrow down what triggers this “empty file” update, please include that information at any time.
For example, does this always happen when a page with an image in Large Media is edited or only sometimes? If only sometimes, is there any known pattern? Does it only happen for specific users or if specific steps are taken? If specific actions trigger this, what are those actions.
Please let us know if there are any other questions for us and we look forward to finding the root cause of this issue.