Add:
- Api upload background
- /api-client/api-validation.ts

### No Issue
This commit is contained in:
2025-08-27 17:41:42 +08:00
parent 4fc2c90702
commit d3c4f04e07
5 changed files with 142 additions and 27 deletions

View File

@@ -47,10 +47,11 @@ export async function uploadImageService({
"Content-Type": "multipart/form-data",
Authorization: `Bearer ${token}`,
},
timeout: 30000,
// timeout: 30000,
});
const { data } = response;
console.log("response upload >>", JSON.stringify(data, null, 2));
if (!data.success) {
Toast.show({
@@ -62,10 +63,10 @@ export async function uploadImageService({
return;
}
Toast.show({
type: "success",
text1: "File berhasil diunggah",
});
// Toast.show({
// type: "success",
// text1: "File berhasil diunggah",
// });
return data;
} catch (error) {