This worked For me
from starlette.responses import FileResponse
return FileResponse(file_location, media_type="application/octet-stream",filename=file_name)
This will download the file with filename
This worked For me
from starlette.responses import FileResponse
return FileResponse(file_location, media_type="application/octet-stream",filename=file_name)
This will download the file with filename