diff --git a/API/FamilyTreeAPI/Repository/ImportPersonRepository.cs b/API/FamilyTreeAPI/Repository/ImportPersonRepository.cs index 13edbbe..df6fb88 100644 --- a/API/FamilyTreeAPI/Repository/ImportPersonRepository.cs +++ b/API/FamilyTreeAPI/Repository/ImportPersonRepository.cs @@ -79,7 +79,7 @@ public class ImportPersonRepository } else { - error = "error filename " + criteria.FileName + " can not find"; + error = "error filename " + criteria.FileName + " can not find in this folder:" + imagePath; statusCode = -1; } } diff --git a/API/docker-compose.yml b/API/docker-compose.yml index eb40998..816da64 100644 --- a/API/docker-compose.yml +++ b/API/docker-compose.yml @@ -43,7 +43,7 @@ services: dockerfile: Dockerfile container_name: familytreeui volumes: - - ./:/app + - ./:/app networks: - dev familytreeapi: @@ -54,7 +54,9 @@ services: environment: - "Logging:Microsoft.AspNetCore.DataProtection:None" - "AppSettings:SQLConnectionString=host=postgresdb;database=FamilyTreeDB;username=postgres;password=Positive~1" - + volumes: + - app_import:/home/kham/dvolumes/app_import + - app_images:/home/kham/dvolumes/app_images ports: - "8080:8080" build: diff --git a/UI/src/app/person/person.edit.ts b/UI/src/app/person/person.edit.ts index c041b7f..e646013 100644 --- a/UI/src/app/person/person.edit.ts +++ b/UI/src/app/person/person.edit.ts @@ -134,7 +134,7 @@ onFileSelected(event: any) { if (file) { this.file = file; //this.messageService.add({ severity: 'info', summary: 'Success', detail: 'File Uploaded!' }); - // this.courseForm.patchValue({ attachmenFile: this.file.name }); + this.adminuserForm.patchValue({ image: this.file.name }); this.fileName = file.name; this.subChanged$.next(false); }