File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -56,9 +56,9 @@ import {downloadFileBrowser} from "ipull/dist/browser.js";
5656
5757const downloader = await downloadFileBrowser ({
5858 url: ' https://example.com/file.large' ,
59- acceptRangeIsKnown: true , // cors origin request will not return the range header, but we can force it to be true (multi-connection download )
60- // defaultFetchDownloadInfo: { // if we know the file size and other info, we can set it manually to overcome CORS issues && prevent multiple requests
61- // acceptRanges : true,
59+ acceptRangeIsKnown: true , // overcome CORS, force multi-connection download (use only if you know the server supports range requests )
60+ // defaultFetchDownloadInfo: { // set download info manually to overcome CORS issues && prevent multiple requests
61+ // acceptRange : true,
6262 // length: 40789822,
6363 // }
6464});
You can’t perform that action at this time.
0 commit comments