We have deployed the following:
- A hosted feature layer to hold QuickCapture (QC) features (HFL)
- A hosted feature layer view (HFLV) of the above that is consumed via a QC project
- When I write directly to the HFL from QC I successfully get points with attached images from the camera.
- However when we write to the HFLV from QC we get points but no attachments.
In Server Manager we get the following error:
|SEVERE||Feb 26, 2020, 10:37:39 AM||Wrong attachment definition syntax.||Rest|
Now there is a complication - The QC points have an attribute called: secured_from_app with a default value of "Yes" in QC. The HFLV has a Feature View Definition of secured_from_app does not equal "Yes".
The intent here is that we can have users writing to the GIS HFL with QuickCapture, but if they tried to query the service (they can only access the HFLV) they would not be able to retrieve any features.
For example - we have multiple different users working on sensitive sites, and we don't want them to see what each other are up to. Aware that we could publish multiple services and configure multiple projects, but that is an admin overhead (plus potential user confusion) we are trying to avoid.
I have tested the HFLV with this View Definition turned off and the points have attachments. When it is applied points are submitted but attachments are not.
My theory is QC writes the points to the HFL (via the HFLV) and then tries to add attachments, but because of the HFLV View Definition it cannot access the features to attach the images. I dunno, just a guess.
Either way, I think there is a valid workflow for providing the app to users but wanting the actual submitted data to be secure, even from the people submitting it.