Flask Attributeerror: 'unicode' Object Has No Attribute 'tell'
I'm trying to upload images to Amazon S3 with a Flask app and store the keys and metadata in a Redis db. Here is my app: def s3upload(image, acl='public-read'): key = app.confi
Solution 1:
k.set_contents_from_file
expects a file-like object with a method named tell()
, You pass it a unicode string.
You need to use k.set_contents_from_string
instead.
Post a Comment for "Flask Attributeerror: 'unicode' Object Has No Attribute 'tell'"