Skip to content

Instantly share code, notes, and snippets.

@madwind76
madwind76 / flask-post-image-server.py
Created January 19, 2018 12:31
qt post image to flask server
# ---templates
# uploads
# app.py
import os
# We'll render HTML templates and access data sent by POST using the
# request object from flask. Redirect and url_for will be used to
# redirect the user once the upload is done and send_from_directory will
# help us to send/show on the browser the file that the user just
# uploaded