How to use the Attachment connection type
Use the Data Connections page to configure connection information to a database. The connection string is encrypted when saved to the database.
- From the Configuration menu on the left, select Data Connections.
- Click (Add Connection) to add a new connection. To view or edit an existing data connection, select the connection from the Connection Name list.
- Enter a connection name and description for the attachment connection. This helps you identify the data connection if you connect to more than one database.
- Select Attachment as the connection type.
- Select the type of storage you want to use from the Attachment Storage Type field.
If you select Azure File Share as the attachment storage type complete the following fields:
Account Name: Enter the username/ID for accessing the storage site.
Account Key: Enter the password or secret that the storage type requires for accessing the storage site.
File Share: Enter the endpoint for the storage site where attachments using this connection are stored.
Default Folder in Share: Enter the folder name for the attachments to be stored in using this connection.
If you select Windows File Share as the attachment storage type enter the folder name for the attachments to be stored in the Default Folder in Share field.
If you want to use more than one folder, you will need to set up multiple connections for one to each folder.
Files that are uploaded to a device will appear with a temporary name using a GUID. Once the form is submitted, the naming convention will be used. Attachments in this “temporary” state are not picked up by the automated services that move files. If you have old attachments that appear to use the temporary name, it’s likely the that the form was deleted, and the attachments were not. These can be deleted at your discretion.
- Click Test Connection to ensure your settings are correct. Data connections can be edited by clicking a connection on the Data Connections page. The Connection window opens, and the settings can be changed.
- Click Save when you've completed your changes.