firebase-file-uploader
v0.4.2
Published
Use HTML5/modern browsers to store file data processed client-side as base64-encoded data in Firebase
Downloads
2
Readme
FirebaseFileUploader
Use HTML5/modern browsers to store file data processed client-side as base64-encoded data in Firebase
Usage
var ref = new Firebase(FB_URL + '/files');
var firebaseFileUploader = new FirebaseFileUploader(ref);
document.querySelector('[type=file]').addEventListener('change', function (e) {
firebaseFileUploader.process(e.target.files, ref);
});
document.addEventListener('paste', function (e) {
firebaseFileUploader.process(e.clipboardData.items, ref);
});