Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
Save the file-like object to GridFS using the given filename.
Returns ``None``.

.. code-block:: python

    @app.route('/uploads/<path:filename>', methods=['POST'])
    def save_upload(filename):
        mongo.save_file(filename, request.files['file'])
        return redirect(url_for('get_upload', filename=filename))
(more...)

src/f/l/Flask-PyMongo-0.3.0/examples/wiki/wiki.py   Flask-PyMongo(Download)
def save_upload(filename):
    if request.files.get('file'):
        mongo.save_file(filename, request.files['file'])
        return redirect(url_for('get_upload', filename=filename))
    return render_template('upload.html', filename=filename)

src/f/l/flask-pymongo-HEAD/examples/wiki/wiki.py   flask-pymongo(Download)
def save_upload(filename):
    if request.files.get('file'):
        mongo.save_file(filename, request.files['file'])
        return redirect(url_for('get_upload', filename=filename))
    return render_template('upload.html', filename=filename)