FWeinb / rclone-js

Encrypt/Decrypt files in your browser
76 stars 15 forks source link

Is it possible to support ranged-requests? #7

Open Bommel24 opened 4 years ago

Bommel24 commented 4 years ago

All rclone remotes support RangedRequests (through a http Range header). would it be possible to give the rclone.File.createReadStream a start and end value so I get only a "part" of a file? Would be very nice! Thank you :)

FWeinb commented 4 years ago

Something similar to what you are requesting can be implemented by the user like this: https://codesandbox.io/s/w0l01oopl5

See the fetchStreamFactory function there.