#40 fix: upload de imágenes con multipart/form-data
This commit is contained in:
@@ -138,12 +138,16 @@ class DjangoApi {
|
||||
|
||||
createCatalogueImage(data) {
|
||||
const url = this.base + "/don_confiao/api/catalogue_images/";
|
||||
return http.post(url, data).then((r) => r.data);
|
||||
return http.post(url, data, {
|
||||
headers: { 'Content-Type': undefined },
|
||||
}).then((r) => r.data);
|
||||
}
|
||||
|
||||
updateCatalogueImage(id, data) {
|
||||
const url = this.base + `/don_confiao/api/catalogue_images/${id}/`;
|
||||
return http.put(url, data).then((r) => r.data);
|
||||
return http.put(url, data, {
|
||||
headers: { 'Content-Type': undefined },
|
||||
}).then((r) => r.data);
|
||||
}
|
||||
|
||||
deleteCatalogueImage(id) {
|
||||
|
||||
Reference in New Issue
Block a user