mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
add attach to publication
This commit is contained in:
@@ -16,13 +16,12 @@ export class FileLoaderService {
|
||||
constructor() { }
|
||||
|
||||
|
||||
createInput(param:createInput): HTMLInputElement {
|
||||
createInput({accept, type = 'file'}:createInput): HTMLInputElement {
|
||||
|
||||
let input = document.createElement('input');
|
||||
input.type = param.type || 'file';
|
||||
input.accept = param.accept.join(', ')
|
||||
input.type = type || 'file';
|
||||
input.accept = accept.join(', ')
|
||||
|
||||
|
||||
// input.onchange = () => {
|
||||
// // you can use this method to get file and perform respective operations
|
||||
// let files = Array.from(input.files);
|
||||
|
||||
Reference in New Issue
Block a user