diff --git a/src/app/exports/file-upload/file-upload.ts b/src/app/exports/file-upload/file-upload.ts index 90299ac7..6c0a9552 100644 --- a/src/app/exports/file-upload/file-upload.ts +++ b/src/app/exports/file-upload/file-upload.ts @@ -210,7 +210,9 @@ export class FileUpload implements AfterViewInit, ControlValueAccessor { protected onFileUploadSuccess(fileItem, res): Observable { fileItem.uploadResponse = res; - fileItem.url = this.transformResponseUrl(res); + const responseUrl = this.transformResponseUrl(res) || ''; + const url = responseUrl.length ? responseUrl[0] : responseUrl; + fileItem.url = url || fileItem.url; this.fileUploadSuccess.emit(fileItem); this.selectFiles = this.selectFiles.filter(item => item !== fileItem); this.onUploadFileChange([...(this.uploadFiles || []), fileItem]);