forked from Scifabric/pybossa
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RDISCROWD-5567 Enhance task guidelines images (#803)
* added upload_task_guidelines_image route * add security checks * add errors to response * implement uploading and file size check * remove test flash * add file size tests * fix typo in test description * added multiple file uploads test * use send 413 response code on large file * refactor errors to error * switch to small images * remove added files * Delete setuplogins.py * use magic number for max image upload size * edit settings_local template * edit settings_test template * use default value for MAX_IMAGE_UPLOAD_SIZE_MB * initial push for edge case tests * refactor and fix edge cases test * bump theme SHA Co-authored-by: nsyed22 <nsyed22@bloomberg.net>
- Loading branch information
Showing
8 changed files
with
212 additions
and
2 deletions.
There are no files selected for viewing
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
Submodule default
updated
4 files
+0 −4 | static/css/projects.css | |
+33 −0 | static/js/image_upload.js | |
+1 −1 | static/src/yarn.lock | |
+9 −4 | templates/projects/task_presenter_editor.html |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -245,3 +245,5 @@ COMPLETED_TASK_CLEANUP_DAYS = [ | |
(90, "90 days"), | ||
(180, "180 days") | ||
] | ||
|
||
MAX_IMAGE_UPLOAD_SIZE_MB = 5 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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