-1

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 Answers1

1

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

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