Closed krishaamer closed 7 years ago
If anyone has the same question, here's what I ended up using:
let blob = dataURItoBlob(base64Data);
let files = [];
files.push(blob);
let upload = scorpius.filesystem.upload({
fileList: files,
name: "file name",
uploader: 'file-attribute'
});
Tracker.autorun(function () {
if (upload.ready()) {
console.log(upload.fileId)
}
});
Tracker.autorun(function () {
let progress = upload.progress();
console.log(progress);
});
This is Awesome, and a great use of the filesystem. Once the documentation and forum site be sure to post this as a solution.
Hello!
I'm recording video in the browser using lukemadera:video-capture and would like to save it to MongoDB using the scorpius filesystem. So I was wondering what's the expected format of "fileList" ? Probably I should also do something with base64Data before saving.
Any advice would be appreciated.
-Kris