How do I upload PDFs to Paperless NGX with Python? #1
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I want to watch a directory on my local machine for PDFs, and then upload them to Paperless NGX whenever they appear. That way, I can scan directly to a folder with NAPS2, and the uploader will do its thing.
I wrote this little script. You need to set
PAPERLESS_API_TOKENPAPERLESS_API_HOSTin the environment. Paperless will let you get an API token from your profile, and the host should be just the hostname (e.g.
paperless.example.com).