Код: Выделить всё
@app.route("/new/photo",methods=["POST"])
def newPhoto():
form_photo = request.files['post-photo']
print form_photo.content_length
Подробнее здесь: https://stackoverflow.com/questions/157 ... les-object
Код: Выделить всё
@app.route("/new/photo",methods=["POST"])
def newPhoto():
form_photo = request.files['post-photo']
print form_photo.content_length