Implemented multi-file upload/download

This commit is contained in:
Danny Coates 2018-07-25 22:26:11 -07:00
parent b2aed06328
commit 7bf104960e
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
18 changed files with 475 additions and 183 deletions

View file

@ -33,6 +33,7 @@ module.exports = function(state, emit) {
<input id="file-upload"
class="inputFile"
type="file"
multiple
name="fileUploaded"
onfocus=${onfocus}
onblur=${onblur}
@ -67,8 +68,10 @@ module.exports = function(state, emit) {
async function upload(event) {
event.preventDefault();
const Archive = require('../../archive').default;
const target = event.target;
const file = target.files[0];
const file = new Archive(target.files);
if (file.size === 0) {
return;
}