diff options
author | Dave Arter <davea@mysociety.org> | 2019-06-06 11:59:49 +0100 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2019-06-06 12:05:38 +0100 |
commit | 1ccd6bb35cce43c88610ad6ed93d18b3fc342d72 (patch) | |
tree | 338208feee61997a1b76c2946a14c18442fc8cd5 /perllib/FixMyStreet/SendReport | |
parent | ff3b747698f577876bff25512ac137c6677ccab7 (diff) |
Allow file uploading when sending Open311 service requests
This adds a new upload_files flag (which cobrands can set in their
open311_config method) to Open311 which means any general enquiry files
are POSTed to the Open311 endpoint in a multipart/form-data request.
Photos on hidden reports are also sent if this flag is set, because they
wouldn't be accessible to the Open311 endpoint via media_url as the
reports are non_public.
This feature is not part of the Open311 specification.
Diffstat (limited to 'perllib/FixMyStreet/SendReport')
-rw-r--r-- | perllib/FixMyStreet/SendReport/Open311.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/SendReport/Open311.pm b/perllib/FixMyStreet/SendReport/Open311.pm index a661ff206..8a6b992fd 100644 --- a/perllib/FixMyStreet/SendReport/Open311.pm +++ b/perllib/FixMyStreet/SendReport/Open311.pm @@ -29,6 +29,7 @@ sub send { use_service_as_deviceid => 0, extended_description => 1, multi_photos => 0, + upload_files => 0, fixmystreet_body => $body, ); |