Saving uploaded base64 data gives TypeError: a bytes-like object is required, not 'str'
You need to encode either app.config['UPLOAD_FOLDER']
or , filename
to be a byte-like object. Try the .encode('utf-8')
method.
You need to encode either app.config['UPLOAD_FOLDER']
or , filename
to be a byte-like object. Try the .encode('utf-8')
method.