How to make an Arcgis Attachment URL Public

759
2
Jump to solution
07-19-2019 09:14 AM
OisinSlevin
New Contributor III

I have a feature layer with images  which I want to keep the data private,

but make the url to the image public so it can be viewed in another system
is there a way to do this?

Currently there is a token on the url which times out after a few hours.

0 Kudos
1 Solution

Accepted Solutions
GeoJosh
Esri Regular Contributor

Hello,

Can you create a hosted feature layer view, and choose to show only the field that contains the URLs?

Create hosted feature layer views—ArcGIS Online Help | ArcGIS 

Best,

Josh

View solution in original post

2 Replies
GeoJosh
Esri Regular Contributor

Hello,

Can you create a hosted feature layer view, and choose to show only the field that contains the URLs?

Create hosted feature layer views—ArcGIS Online Help | ArcGIS 

Best,

Josh

OisinSlevin
New Contributor III

Thanks Joshua, 

So what I had to do was create the hosted layer view,  and hide/filter out as much information as possible.
Then when you get the attachments preview link it still comes by default with a token which will timeout and become unusable after ~1 hour ,

But once you make your view public you can remove the text in the attachment url that appears from "?token" and now you have a publicly available preview/download URL