46 lines
660 B
JavaScript
46 lines
660 B
JavaScript
|
|
|
|
import input from './input.js';
|
|
|
|
|
|
import Console from '/unify/console.js';
|
|
|
|
import promiseManager from '/unify/promiseManager.js';
|
|
|
|
import shared from '/unify/shared.js';
|
|
|
|
|
|
export default class fileUpload extends input{
|
|
|
|
inputType = "file";
|
|
|
|
attribute = "multiple";
|
|
|
|
promiseManager = new promiseManager();
|
|
|
|
uploadID = 0;
|
|
|
|
fileInformation = new Array();
|
|
|
|
path = "/assets/uploads/";
|
|
|
|
customFileName = false;
|
|
|
|
|
|
constructor() {
|
|
|
|
super();
|
|
|
|
}
|
|
|
|
create() {
|
|
|
|
this.customElement.setAttribute("type", this.inputType);
|
|
this.customElement.setAttribute("multiple", "true");
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|