Our monthly Virtual Happy Hour is happening this week, Fri Feb 23!

Try our conversational search powered by Generative AI!

Thumbnails are not loading from the S3 in Media tab

Vote:
 

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. 

#284437
Jul 26, 2022 11:02
Vote:
 

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
#284693
Jul 31, 2022 8:52
Vote:
 

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

#284769
Edited, Aug 01, 2022 16:38
Vote:
 

Hi Neelam Yangal,

  I am also facing the same issue. I am not sure why the extra integer digit is appending with the thumbinal url .

   If you are able to resolve the issue. Can you please help me ?

#288943
Edited, Oct 10, 2022 12:06
Vote:
 

late to the party, is your S3 configured to block certain IP?

#288945
Oct 10, 2022 13:42
Vote:
 

Hi Quan Mai

I am not loading the image from s3 bucket. I am loading image from external json that contains image thumbinal url . I am not sure why it's appending the extra integer digit for all the thumbinal url. We are not adding anywhere in the code.

#288949
Oct 10, 2022 14:31
Vote:
 

It looks like your issue is different than what I was experiencing. But in my case, while registering the route at global.asax.cs, I have changed the image virtual path. If images have blobs, then change the virtual path to the CDN URL + Blobs URL. HTTPS://***.***.com/3176ddd00b72438da42c14783466b5b0/67b8047c1ebd4edba2e96e710fe11200.jpg

So this change (CDN URL + Blobs URL) has broken my thumbnail URL and it was not loading the images. But in our case, we have two servers client-server and an admin server. On the admin server, I am not converting the image URL to the blobs one, so this has solved my issue. The client-server continues to deliver images from CDN.

#288951
Oct 10, 2022 20:07
* 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.