Skip to content

Add a page count cap to documentcloud uploads [staging] - #488

Merged
duckduckgrayduck merged 1 commit into
stagingfrom
page_cap_size
Sep 22, 2026
Merged

duckduckgrayduck merged 1 commit into
stagingfrom
page_cap_size

Conversation

@duckduckgrayduck

Copy link
Copy Markdown
Contributor
  • Adds it to template_params.yml where pdf size limit is defined

  • Declares the limit with a default of 2000 pages in info_and_image/main.py

  • If the page count we get from extract_page_count in the step before is > limit, delete it from storage and raise PageCountError

@duckduckgrayduck
duckduckgrayduck changed the base branch from master to staging September 22, 2026 15:46
@duckduckgrayduck
duckduckgrayduck merged commit cce4dcd into staging Sep 22, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant