I have 2 use cases here:
#1
I upload a .png file to ArcGis Online and I want to use that as a custom symbol. What is the URL to that file? I tried going to the file in the portal and using the URL generated by the "download" button, which gave me something like https://ago-item-storage.s3.region.amazonaws.com/abcdefg1234567890/my_custom_file.png?X-Amz-Security...
That worked, but only for a few days, then it no longer existed. I think that link expires.
So, is there a way to get a permanent URL to these files?
#2
Similar use case, but using a png image in javascript to put on top of the map. I'm using a similar link to the above, and it also expires after a few days.
Solved! Go to Solution.
The way I've done it is add the image to ArcGIS Online, share with everyone, and then use this URL at the bottom of the item details page:
Are you able to share the image with everyone? That would solve the issue of the token expiring.
So just make it public and use the amazon link? Or is there some special arcgis/esri rest api link that I should use?
The way I've done it is add the image to ArcGIS Online, share with everyone, and then use this URL at the bottom of the item details page:
Ah! Thank you so much for that picture. I was missing that part. The URL doesn't show at all until after it is shared with everyone. You have helped me very much!!!
Thank goodness for the "snipping tool", a picture is definitely worth a thousand words.
Glad I could help!