Improve add attachment

This commit is contained in:
Peter Maquiran
2021-04-20 15:05:40 +01:00
parent e794c12872
commit ecb87959a0
9 changed files with 86 additions and 24 deletions
+16 -3
View File
@@ -71,10 +71,23 @@ export class AttachmentsService {
headers: this.headers,
}
alert('send');
console.log('send', body);
return this.http.post(`${geturl}`, body, options);
}
deleteEventAttachmentById(attachmentId) {
let geturl = environment.apiURL + `Attachments/Delete?attachmentId=${attachmentId}`;
let params = new HttpParams();
params = params.set("attachmentId", attachmentId);
let options = {
headers: this.headers,
params: params
}
return this.http.post(`${geturl}`, options);
}
}