ReSTfully upload file in Flask without multipart/form-data
问题 I'm trying to upload a binary file to a Flask endpoint without using any type of multipart/form-data . I'd like to simply POST or PUT the data inside the file to the endpoint, and save it to a file on the server. The only examples I can find, and the only method discussed in other questions, uses multipart/form-data . The following "works", but the SHA256 hashes usually don't match, whereas uploading as form-data works fine. @application.route("/rupload/<filename>", methods=['POST', 'PUT'])