Skip to main content

File and Photo Attachments

Comments

8 comments

  • Jon Swoveland

    Hello Edgardo,

    The option to attach a file or photo to a feature should appear in the Actions section of the results view when an editable feature is selected. Of course, the feature class must have attachments enabled for this option to show.

    Can you verify that you have enabled attachments for the specific feature class?  Please refer to the following for the steps required:

     

    http://resources.arcgis.com/en/help/main/10.1/index.html#//01m90000000r000000

    Regards,

    Jon 

    0
  • Permanently deleted user

    Hi Jon,

    I thought I saw that option to enable attachments but could not recall where. Can't seem to find it.

     

    -edi

    0
  • Jon Swoveland

    Hi Edi,

    The option you're looking for is actually called "Create Attachments". To find it in ArcCatalog, right-click on your feature class, select Manage->Create Attachments.  After performing this step you will have to republish your service.

     

    /customer/servlet/servlet.FileDownload?file=00P6000000e88ZPEAY

    Jon

    0
  • Permanently deleted user

    I have completed the steps necessary to attach files/photos.  i see the option in my 'Actions' tab in Geocortex 4.0, HTML5 2.0.  When I try to select a photo or file to upload I get the following error, "File attachment failed. Forbidden".....not sure what the issue is.  Anyone else experienced this issue?  Were you able to overcome it?  How?  Thank you.

     

    0
  • Permanently deleted user

    Hi Sean,

    When you upload an attachment, it is sent through the proxy page (proxy.ashx).  If you haven't yet configured your proxy page to permit proxying to the server that contains the attachments, you'll have to add it to the proxy.config file to allow this to happen.

    If you run Fiddler when you try to add the attachment, you will see the which request is returning the Forbidden error.  If it's a 403 Forbidden returned from proxy.ashx, then simply configure the proxy page.  If it's a forbidden message returning from ArcGIS Server then you'll have to dig a bit deeper into the server config to determine why it is forbidding a new attachment.

    Regards,

    -Malcolm

    0
  • Permanently deleted user

    Thanks Malcolm.  I simply removed the proxy.ashx and everything worked.

    0
  • Permanently deleted user

    Adding http://<server>.com:6080/arcgis/rest/services to the proxy.ashx proxies the viewer to the addAttachment REST url and uploads the attachment to the database. This does not work with secured services though, which is what are after.

    We are using Microsoft's ARR solution. I have added it as well the proxy.ashx.  I am wondering if we need to add an inbound rule to the proxy on the ARR?

    After getting prompted for credentials once a user can upload attachments using the link:  https://<external.domain.com>/arcgis/rest/services/Mobile/Feature_Attachments/FeatureServer/0/22/addAttachment. However, the application calls https:// <external.domain.com> /Html5/proxy.ashx?https:// <external.domain.com> /arcgis/rest/services/Mobile/Feature_Attachments/FeatureServer/0/24/addAttachment

    You are prompted over and over to enter credentials here and it will not accept them and therefore can never add the attachment. Any ideas Malcolm? Thanks

    0
  • Cattyann Campbell
    Did you figure this out? Its been a few years now. If not let me know
    0

Please sign in to leave a comment.