Thumbnails are not loading from the S3 in Media tab


Recently we are loading the blob images from the S3.

Blobs are stored like this

Thumbnails img src url is https://***.***.com/3176ddd00b72438da42c14783466b5b0/67b8047c1ebd4edba2e96e710fe11200.jpg/Thumbnail?epieditmode=False?1658827402393

Admin shows 404 for thumbnail images

when images are not serving from the S3 then thumbnail images are loading properly. with this image url : /epiui/edit/CMS/Content/globalassets/0-background-profile.jpg,,109331/Thumbnail?epieditmode=False?1658749145444

Please let me know, what could be the reason for this? Thanks in advance. 

Jul 26, 2022 11:02

In your custom ImageFile, implement override Thumbnail method to provide your own logic instead of Optimizely making the assumption there's a generated thumbnail in the primary blob storage.

public override Blob Thumbnail
Jul 31, 2022 8:52

Thank you for your answer.

There was a typo in my original post, it was 403 error not a 404 error. Apologies for that.

Although I have tried your suggestion,  The thumbnail url seems to be the same, even after adding custom logic, 

I have debugged with this sample code, seems Thumbnail url is correct one, but episerver is loading with main image.

Some more detail:

1. I can see image with this url  https://***.***.com/3176ddd00b72438da42c14783466b5b0/67b8047c1ebd4edba2e96e710fe11200.jpg

2. Thumbnail with:  https://***.***.com/3176ddd00b72438da42c14783466b5b0/67b8047c1ebd4edba2e96e710fe11200_Thumbnail.png

But episerver loading the url with https://***.***.com/3176ddd00b72438da42c14783466b5b0/67b8047c1ebd4edba2e96e710fe11200.jpg/Thumbnail?epieditmode=False?1659371043774 which seems giving me 403 error

Edited, Aug 01, 2022 16:38
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.