Skip to content

Upload a bundle

Edith Coates requested to merge upload_bundle into django_scan

Let a scanner user upload a PDF of scanned bundle pages.

  • Basic validation: file size less than or equal to 5mb? Can fitz open it and read metadata? Also, calculate sha256 and create slug
  • Save to disk: MEDIA_ROOT/username/bundles/bundle_slug_timestamp.pdf
  • Create StagingBundle instance with path, user, time uploaded, hash
  • Display bundle inside template (will require storing page pixmaps in static) Edit: will probably require serving media files instead
Edited by Edith Coates

Merge request reports