diff --git a/backend/src/routers/signs.py b/backend/src/routers/signs.py index c2c245e..8eb7f18 100644 --- a/backend/src/routers/signs.py +++ b/backend/src/routers/signs.py @@ -120,4 +120,5 @@ async def download_all(Authorize: AuthJWT = Depends(), session: AsyncSession = D for path in paths: zip_file.write(f"{settings.DATA_PATH}/{path}", os.path.basename(path)) - return FileResponse(zip_path, media_type="application/zip", filename="signs.zip") + # return the zip file and delete it after the request is done + return FileResponse(zip_path, media_type="application/zip", filename="signs.zip", delete_after_request=True) \ No newline at end of file