[<<][webdev][>>][..]
Sat Sep 5 20:34:30 CEST 2015

React data upload

// browsing to get filename
<form><input type="file"/></form> 

// reading data
FileReader.readAsBinaryString
FileReader.readAsArrayBuffer

// then send over websocket

[1] https://fitacular.com/blog/react/2014/06/23/react-file-upload-base64/
[2] https://developer.mozilla.org/en/docs/Web/API/FileReader



[Reply][About]
[<<][webdev][>>][..]