From a881f74a4fc2df5f08a1f3dccaf7117e1f370e66 Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 15 Jan 2020 18:29:52 +0100 Subject: [PATCH] Fix invalid upload url --- src/app/components/profile/profile.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/profile/profile.component.ts b/src/app/components/profile/profile.component.ts index ff163ee..31822ad 100644 --- a/src/app/components/profile/profile.component.ts +++ b/src/app/components/profile/profile.component.ts @@ -73,7 +73,7 @@ export class ProfileComponent implements OnInit { const formData: any = new FormData(); formData.append('profilePicture', event.target.files[0]); - this.http.post(environment.greenvironmentUrl, formData).subscribe( + this.http.post(environment.greenvironmentUrl + '/upload', formData).subscribe( (response: any) => { this.userProfile.profilePicture = environment.greenvironmentUrl + response.filename; },