ShareDropio / sharedrop

Easy P2P file transfer powered by WebRTC - inspired by Apple AirDrop
https://www.sharedrop.io
MIT License
10.2k stars 747 forks source link

Save file directly to HDD (not the sandboxed Filesystem) #45

Open jimmywarting opened 8 years ago

jimmywarting commented 8 years ago

Just a tip: With StreamSaver.js it is possible to save really large file - without saving the file in the filesystem

szimek commented 7 years ago

Is there any polyfill for browsers that don't support it natively? I haven't looked closely at it yet, but it sounds pretty awesome. However, I'd really like to avoid having completely different implementations for Chrome and other browsers.

jimmywarting commented 7 years ago

You already have different implementation for chrome... requestFileSystem You could replace that with StreamSaver

And no, there is no pollyfill for that. Browsers need to support native ReadableStream API for it to work. It also requires service worker to work Maybe not in the feature https://github.com/whatwg/streams/issues/480