Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mismith/firebase-file-uploader
Use HTML5/modern browsers to store file data processed client-side as base64-encoded data in Firebase
https://github.com/mismith/firebase-file-uploader
Last synced: about 1 month ago
JSON representation
Use HTML5/modern browsers to store file data processed client-side as base64-encoded data in Firebase
- Host: GitHub
- URL: https://github.com/mismith/firebase-file-uploader
- Owner: mismith
- Created: 2016-03-01T17:26:41.000Z (almost 9 years ago)
- Default Branch: gh-pages
- Last Pushed: 2016-09-19T22:24:16.000Z (over 8 years ago)
- Last Synced: 2024-12-27T00:30:53.159Z (about 1 month ago)
- Language: JavaScript
- Homepage: https://mismith.github.io/firebase-file-uploader/
- Size: 19.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
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);
});