Fix invalid upload url

master
Max 5 years ago
parent a80bcf9d3e
commit a881f74a4f

@ -73,7 +73,7 @@ export class ProfileComponent implements OnInit {
const formData: any = new FormData(); const formData: any = new FormData();
formData.append('profilePicture', event.target.files[0]); formData.append('profilePicture', event.target.files[0]);
this.http.post(environment.greenvironmentUrl, formData).subscribe( this.http.post(environment.greenvironmentUrl + '/upload', formData).subscribe(
(response: any) => { (response: any) => {
this.userProfile.profilePicture = environment.greenvironmentUrl + response.filename; this.userProfile.profilePicture = environment.greenvironmentUrl + response.filename;
}, },

Loading…
Cancel
Save