diff --git a/extensions/photos.py b/extensions/photos.py index a8bb6be..902752a 100644 --- a/extensions/photos.py +++ b/extensions/photos.py @@ -127,7 +127,7 @@ async def photo_upload( async with aiofiles.open( path.join("data", "users", current_user.user, "albums", album, filename), "wb" ) as f: - f.write(await file.read()) + await f.write(await file.read()) file_hash = await get_phash( path.join("data", "users", current_user.user, "albums", album, filename)