aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2020-06-30 16:43:29 +0100
committerMatthew Somerville <matthew@mysociety.org>2020-07-01 16:54:43 +0100
commite623594f10d74a8dfb5eaea801c43f4996b15a1e (patch)
tree01ad019b44f3354198731c783e34c30e58dfcdd0
parent1909028b0956cbd0bf4ed17d8be942bd6f77e78c (diff)
Include file extensions in Dropzone acceptedFiles.
In my Firefox on Windows, .jpeg files are not otherwise shown.
-rw-r--r--CHANGELOG.md1
-rw-r--r--web/cobrands/fixmystreet/fixmystreet.js2
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index decfa2b5e..d0b56165b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -18,6 +18,7 @@
- Fix double encoding of per-category templates.
- Return reports in all closed states through Open311.
- Skip accounts without email when sending inactive emails.
+ - Include file extensions in Dropzone accepted photo config.
- Admin improvements:
- Display user name/email for contributed as reports. #2990
- Interface for enabling anonymous reports for certain categories. #2989
diff --git a/web/cobrands/fixmystreet/fixmystreet.js b/web/cobrands/fixmystreet/fixmystreet.js
index cd98b233b..d79f17049 100644
--- a/web/cobrands/fixmystreet/fixmystreet.js
+++ b/web/cobrands/fixmystreet/fixmystreet.js
@@ -705,7 +705,7 @@ $.extend(fixmystreet.set_up, {
resizeWidth: 2048,
resizeHeight: 2048,
resizeQuality: 0.6,
- acceptedFiles: 'image/jpeg,image/pjpeg,image/gif,image/tiff,image/png',
+ acceptedFiles: 'image/jpeg,image/pjpeg,image/gif,image/tiff,image/png,.png,.tiff,.tif,.gif,.jpeg,.jpg',
dictDefaultMessage: default_message,
dictCancelUploadConfirmation: translation_strings.upload_cancel_confirmation,
dictInvalidFileType: translation_strings.upload_invalid_file_type,