How to show JPGs with content type image/jpg from remote URLs?

We're getting form submissions from an external form that contains images, hosted in a aws s3 bucket. the images are jpgs. I've configured the column to be of type image, but it seems like the getremoteimageurl function does not support JPGs?

  1. Does not work: 
  2. Works:

It all seems to me as if remote JPGs are not supported, yet it's hard to believe that. 

0 5 1,125
5 REPLIES 5

AppSheet mentions that the URLS need to be publicly accessible. You may wish to take a look at the following help article just in case you have not.

https://help.appsheet.com/en/articles/961605-displaying-images-and-documents

The sample app below has many images URL. These images are from sites like Wikimedia that host publicly available image URLs. 

https://www.appsheet.com/templates/Display-attractions--details-include-contact-information--more?ap...

Hi,

thanks for the reply. I checked the documentation that you mentioned, and the linked images are publicly accessible. This is the one referred to in the first link, that does not show:

https://www.appsheet.com/image/getremoteimageurl?url=https%3A%2F%2Fs3.amazonaws.com%2Fpf-upload-01%2...

https://s3.amazonaws.com/pf-upload-01/u-189912/0/2022-02-11/k72352k/image.jpg

On the other hand, I see that these links are working fine in the app that you mentioned:

I'm a bit lost and the only explaination that I currently have is that the working JPGs have a content type set to 'image/jpeg' while the ones that are not working are served with content-type 'image/jpg'. 

AndreasEK_0-1644835854048.png

Is that an assumption that you could validate?

I think you could contact AppSheet support team or someone else may have more inputs. Yes, I also could not get to display the URL you have shared.

 

Thanks, I'll try to reach out to them. 

Purely out of my guess work, the problem should be coming from Azmazon AWS (S3 bucket) instead of AppSheet.  When Appsheet render the image url externally and publicially hosted outside AppSheet, it is indeed using www.appsheet.com domain.   When we open your amazon image url on the browser, image is displayed.  However, from AppSheet, it returns error. Probably URL (image on Amazon bucket) is called by Appsheet server, which probably restricted by Amazon to return image back to appsheet server.

I m not familiar with Amazon S3  bucket, but if they provide alternative public URL for the hosting image, worth trying to check how it goes.

 

Top Labels in this Space