Hello,
first: thank you in advance!
I resize uploaded pictures, and I would like to download into folder.
The upload and save to directory works.
The load of the picture and resize works.
BUT: I can not save into folder.
I tried a lot of version but none of them works.
The main problem:
AttributeError: 'NoneType' object has no attribute 'save'
The code is:
img_formate = "." + str(file.filename).split(".")[-1]
image = "new_picture" + img_formate
photo.save(os.path.join(app.config['UPLOAD_FOLDER'], image))
I already changed the "image"' for name as well new_pic_jpg or png. Same as the uploaded. "photo" is the resized as well.
How can I solve this?