how to post the data through api in android and show the data in python web interface

172 Views Asked by At

I'm new to python-flask. i created the end points by using restless api ,my question is ,while posting the data through android app the data will not be inserted to the API. here what is the problem .

1

There are 1 best solutions below

2
0xtvarun On

Files in flask request can be accessed via the request.files

@app.route("/api/imgupload", methods=["POST"])
def upload():
    file = request.files[<input-name>]