subins2000 / simple-peer-files

A library to send files over WebRTC
Mozilla Public License 2.0
35 stars 9 forks source link

Failed to execute 'readAsArrayBuffer' on 'FileReader': parameter 1 is not of type 'Blob'. #8

Closed slavkojos closed 3 years ago

slavkojos commented 3 years ago

Keep getting this error in title. In what format am I supposed to pass the file in spf.send() ? I really don't get where am I missing the mark. I tried doing passing the (new Blob([e.target.files[0]])) but no luck.

slavkojos commented 3 years ago

nvm I solved it