I'm using flask to store audio files. When sending the post request to store the file, I'd also like to send additional information about the file, specifically a boolean value.
Currently I'm accessing the file with flask by doing:
file = request.files['file']
I'm sending the file to the flask server in swift by doing:
request.setValue("multipart/form-data; boundary=\(boundary)", forHTTPHeaderField: "Content-Type")
request.HTTPBody = createBodyWithParameters(param, filePathKey: "file", path: params["url"] as? NSURL, boundary: boundary)
Is there a way I can obtain the boolean value with the file upload?