add attach to publication

This commit is contained in:
Peter Maquiran
2021-08-24 11:15:13 +01:00
parent b78d206df6
commit d50d986227
14 changed files with 142 additions and 112 deletions
+3 -4
View File
@@ -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);