Attachments

Open311 apps typically allow users to include attachments when they submit service requests, such as attaching a photograph of a piece of graffiti. There are two ways to set up attachments for your Open311 site.

First, the GeoReport specification defines a medial_url field that gives the URL of an attachment. You can use the Media Url attribute in the Open311 configuration to indicate how your site will handle media URLs. You can select one of three options:

  • NONE: The media_url field is ignored.
  • ATTACHMENT: The resource identified by the URL will be downloaded and saved as an attachment. The Attachments node in the Open311 configuration defines where attachments are stored.
    Note: This option is not supported if you're using Infor Public Sector in a multi-tenant environment.
  • COMMENTSLINK: The URL is stored in the service request comments.

The media_url parameter is the standard way to include attachments in Open311. The Open311 API for Infor Public Sector also includes an extension that provides an alternative way to send attachments.

If you set the Allow Direct Attachments attribute in the Open311 configuration to True, you can use two non-standard parameters on the POST Service Request method to send an attachment as a file stream: the media parameter holds the file stream and the media_filepath parameter specifies the attachment file name. Again, the Attachments node defines where attachments are stored.