First commit
This commit is contained in:
45
application/elements/fileUpload.js
Normal file
45
application/elements/fileUpload.js
Normal file
@@ -0,0 +1,45 @@
|
||||
|
||||
|
||||
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");
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user