This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# the flask post request receiver | |
from io import BytesIO | |
from flask import jsonify, request | |
@app.route('/url_route', methods=['POST']) | |
def upload_file(): | |
"""Handles the upload of a file.""" | |
d = {} | |
try: | |
file = request.files['file_from_react'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Testing the creation of a GitHub gist. | |
http://www.cse.yorku.ca/~oz/hash.html |