It's now here, in The Programmer's Compendium. The content is the same as before, but being part of the compendium means that it's actively maintained.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Render the template for the upload form: | |
@app.route("/upload") | |
def upload(): | |
uploadUri = blobstore.create_upload_url('/submit', gs_bucket_name=BUCKET_NAME) | |
return render_template('upload.html', uploadUri=uploadUri) | |
# Place your uploadUri in the form path (html): | |
'''<form action="{{ uploadUri }}" method="POST" enctype="multipart/form-data">''' |