Upload d'images et affichage des dites

images
This commit is contained in:
Sébastien André
2020-05-27 14:16:36 +02:00
parent bb55612812
commit 1d6d1272ef
3 changed files with 68 additions and 8 deletions

View File

@@ -18,11 +18,11 @@ export class ImageService extends BaseService {
});
}
public AddImage(commentImg: string, dataImg: File) {
public AddImage(commentImg: string, dataImg: string) {
const bodyNewImage: ImageReq = {
id: 0,
comment: commentImg,
data: dataImg.type,
data: dataImg,
};
this.http