brett-jpy / flask-gridfs

Tiny Flask App running in a Docker container that saves uploaded files in MongoDB GridFS.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

flask-gridfs

Tiny Flask App running in a Docker container that saves uploaded files in MongoDB GridFS.

Authentication

The "password" set in the .env file must be passed in the headers using the "auth" key.

Example:

headers = {"auth": "my_very_secret_string"}

More Header Values

Any metadata associated with the file can be passed in the headers as well. Flask ignores a listing and then creates a dictionary out of the remain values.

About

Tiny Flask App running in a Docker container that saves uploaded files in MongoDB GridFS.

License:MIT License


Languages

Language:Python 76.5%Language:Dockerfile 16.7%Language:Shell 6.8%