Creating attachments on a hosted feature service

You can configure your hosted feature service to allow your editors to attach files, such as photos or files, to features in the feature service. To do this, you must create attachments on the feature class or feature classes used in your hosted feature service.

The following sections describe how to create attachments on a hosted feature service:

Find the name of the feature class

If you do not know the name of the feature class in the hosting server's managed database, you can check the Service Workspace of the service.

Steps:
  1. Start ArcCatalog, expand GIS Servers in the Catalog tree, and connect to the hosting server.

    Connect as either the ArcGIS Server administrator or the owner of the service.

  2. Open the Hosted folder under the server and choose the feature service for which you want to create attachments.
  3. Right-click the service and click Service Workspaces.
  4. Click the Copied tab and expand the database.

    Find the feature class name in the Service Workspaces dialog box

    The name of the feature class (or feature classes) in the hosting server's managed database is listed here.

  5. Make note of the feature class name, and close the Service Workspaces dialog box.

Stop the hosted feature service

You must stop the hosted feature service to create attachments. To do this, right-click the service and click Stop.

Connect to the managed database and create attachments

Connect to the enterprise geodatabase as the owner of the feature class and create attachments.

Steps:
  1. Connect to the enterprise geodatabase that is registered as your hosting server's managed database.

    You must connect as the owner of the feature class. The owner is the account that was specified when the geodatabase was registered as the server's managed database. If you do not know what account that is, contact your ArcGIS Server administrator.

  2. Once connected to the geodatabase, right-click the feature class, point to Manage, and click Create Attachments.

    This creates a table to store the attached files and a relationship class between the feature class and the attachments table. If you want to learn more about attachments, see the topics in the Attaching files to features section of the ArcGIS help.

Start the service

Now that attachments have been created, you can restart the hosted feature service. To do this, right-click the service under the hosting server connection in the Catalog tree and click Start.

12/16/2013