Files
Unify/application/elements/fileUpload.js

46 lines
660 B
JavaScript
Raw Normal View History

2025-12-25 11:16:59 +01:00
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");
}
}