-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #434 from vrk-kpa/LIKA-604_fix_adding_pdfs_to_perm…
…ission_applications LIKA-604: Fix adding pdfs to permission applications
- Loading branch information
Showing
4 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
ansible/roles/ckan/files/patches/fix_detection_of_xlsx_mimetype.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/ckan/lib/uploader.py b/ckan/lib/uploader.py | ||
index ec4a6dfd0..360ebfbe0 100644 | ||
--- a/ckan/lib/uploader.py | ||
+++ b/ckan/lib/uploader.py | ||
@@ -220,7 +220,7 @@ class Upload(object): | ||
if not mimetypes and not types: | ||
return | ||
|
||
- actual = magic.from_buffer(self.upload_file.read(1024), mime=True) | ||
+ actual = magic.from_buffer(self.upload_file.read(2048), mime=True) | ||
self.upload_file.seek(0, os.SEEK_SET) | ||
err = {self.file_field: [ | ||
"Unsupported upload type: {actual}".format(actual=actual)]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters