Fixed issues for demo.
This commit is contained in:
@@ -59,15 +59,12 @@ export const uploadToCloudinary = async (
|
||||
//Get the signed url.
|
||||
let signedURLResponse;
|
||||
try {
|
||||
signedURLResponse = await axios.post(
|
||||
"https://d2ea3cff6920.ngrok.io/media/sign",
|
||||
{
|
||||
public_id: public_id,
|
||||
tags: tags,
|
||||
timestamp: timestamp,
|
||||
upload_preset: "incoming_upload",
|
||||
}
|
||||
);
|
||||
signedURLResponse = await axios.post("https://api.imex.online/media/sign", {
|
||||
public_id: public_id,
|
||||
tags: tags,
|
||||
timestamp: timestamp,
|
||||
upload_preset: "incoming_upload",
|
||||
});
|
||||
} catch (error) {
|
||||
console.log("ERROR GETTING SIGNED URL", error);
|
||||
return { success: false, error: error };
|
||||
|
||||
Reference in New Issue
Block a user