fixed vendor-uploads.php

This commit is contained in:
Erwin Galang 2024-02-16 09:39:43 +08:00
parent c8529f58cf
commit 155cd3df6e
1 changed files with 1 additions and 1 deletions

View File

@ -503,7 +503,7 @@ $array = json_decode($result, true);
const payload = {
product_image: `https://<?php echo $_SESSION["data_endpoint"]; ?>/images/storage/product_uploads/${filename}`,
};
fetch('https://<?php echo $_SESSION["data_endpoint"]; ?>/api/v1/upload_image', {
fetch('https://api.obanana.shop/api/v1/upload_image', {
method: 'POST',
body: formData
})