diff --git a/src/objectifier.py b/src/objectifier.py index f63521b..41e883c 100644 --- a/src/objectifier.py +++ b/src/objectifier.py @@ -117,7 +117,7 @@ def analyze_image(request: Request, image: UploadFile): infile = incoming_dir / image.filename file_hash = hashlib.sha256() with open(infile, "w") as f: - chunk = image.read(buffer_size) + chunk = image.file.read(buffer_size) while chunk: file_hash.update(chunk) print ("writing " + buffer_size + " bytes")