Working on range request and seeking for file downloads and streaming
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user