-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a max size feature to the ExhibitDocument (#604)
* Added a max size feature to the ExhibitDocument Also give suggested remaining upload size in human readable file sizes in errors and in between upload screens.
- Loading branch information
1 parent
364fa1f
commit 57df4ab
Showing
3 changed files
with
84 additions
and
17 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
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
23 changes: 23 additions & 0 deletions
23
docassemble/AssemblyLine/data/questions/test_alexhibit_maxsize.yml
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,23 @@ | ||
--- | ||
include: | ||
- al_package.yml | ||
--- | ||
mandatory: True | ||
code: | | ||
gather_main | ||
--- | ||
objects: | ||
- exhibits_bundle_defaults_1: ALDocumentBundle.using(elements=[exhibit_doc_defaults_1], filename="exhibits_bundle_defaults", title="Exhibits with defaults") | ||
--- | ||
objects: | ||
- exhibit_doc_defaults_1: ALExhibitDocument.using(title="Exhibits doc defaults", filename="exhibits_doc_defaults", maximum_size=1*1024*1024 ) | ||
--- | ||
id: gather_main | ||
event: gather_main | ||
question: Default ALDocumentBundle thumbnail method args | ||
subquestion: | | ||
exhibits_bundle_defaults_1.as_pdf() | ||
${ exhibits_bundle_defaults_1.as_pdf() } | ||
${ exhibits_bundle_defaults_1.as_pdf().size_in_bytes() } |