Displaying preloaded images in Survey123 Web App

2188
8
04-26-2017 06:10 PM
RachelCrews
New Contributor II

How do I get the images I'm using to style my survey (those in the media folder) to show up in the web app version? I've tried uploading the images to my AGO in the same folder as the form and feature service but am still getting broken image boxes. When I look at the source URL for the broken images they are like this "https://www.arcgis.com/sharing/rest/content/items/cfd123fba3f64f079f5b12860d7f26e8/info/media/Permit... "

I've also tried linking to the uploaded image directly from the form, but this doesn't work for me either.

Tags (1)
0 Kudos
8 Replies
JamesTedrick
Esri Esteemed Contributor

Hi Rachel,

The images should appear automatically; as you note they are uploaded to ArcGIS Online.  One thing to check is to make sure the name of the file, including capital/lowercase letters, matches the name you've typed in the XLS file- the web access is case sensitive.

0 Kudos
RachelCrews
New Contributor II

I am uploading the images to AGO myself, they do not come in when I upload my survey from the desktop connect application. Unless they are being put somewhere that I cannot see.

0 Kudos
JamesTedrick
Esri Esteemed Contributor

Hi Rachel,

You should not need to upload the images yourself; they are uploaded as part of the form publishing process (that's the <itemID>/info/media/ ... link you cited above).  Take a look at https://survey123.arcgis.com/webclient/40f96a4e6a6449828a87b96473c5bcf7  as an example; the survey is based off the 'media' sample (I removed the audio reference in the survey sheet as the web can't play .wav, apparently) 

0 Kudos
RachelCrews
New Contributor II

Well I am at a loss then as to why my photos do not show up. The cases are correct and the names are spelled correctly (they work on the desktop app and on mobile). This has happened to me with multiple surveys on different AGO accounts.

0 Kudos
JamesTedrick
Esri Esteemed Contributor

Is one of the Surveys shared publicly?  I could take a look at the urls and see if there are any issues.

0 Kudos
RachelCrews
New Contributor II

Thank you for your help. I have made a permit survey public so that you can view and tell me what you think: https://survey123.arcgis.com/webclient/cfd123fba3f64f079f5b12860d7f26e8 

0 Kudos
JamesTedrick
Esri Esteemed Contributor

Okay, found the issue - the case of the file extension is off.  In your Survey, you typed in the filename of the images with lower case "jpg".  The filenames actually have uppercase "JPG".  Update your form (or alter the file names) and republish.

0 Kudos
RachelCrews
New Contributor II

And here I thought all extensions were lowercase. Thanks so much for your help, never would have thought of this!

0 Kudos