dcrosta/flask-pymongo — Issue #1: Add GridFS support
Author: dcrosta
Created: 2011-12-26 19:13:58+00:00
State: open
Labels: TODO

This API probably needs at least two "levels":

1. low-level GridFS helpers through the `PyMongo` object, for folks who want to roll their own
2. high-level view functions for accepting uploads and serving GridFS content (with conditional GET support)

The high-level API might look like this:

@app.route('/uploads/')
mongo.serve_gridfs(collection=uploads)

where `serve_gridfs` returns a view function that expects a single "filename" argument. Need to figure out how to set endpoint name so that `url_for` works as expected/as configured.