Working on range request and seeking for file downloads and streaming

This commit is contained in:
Scott Idem
2023-08-18 11:08:57 -04:00
parent d59956942d
commit 03d5586548

View File

@@ -239,7 +239,7 @@ async def file_streamer(path: str, start: int, end: int):
# ### BEGIN ### API Hosted File ### stream_hosted_file() ###
# Updated 2023-08-18
@router.get('/{hosted_file_id}/stream_v2')
@router.get('/{hosted_file_id}/stream')
async def stream_hosted_file(
hosted_file_id: str = Query(..., min_length=11, max_length=22),
filename: str = Query(None, min_length=4, max_length=100),