Fixed issues for demo.

This commit is contained in:
Patrick Fic
2020-12-15 17:48:41 -08:00
parent 2efac1ed2b
commit 06dda3639f
16 changed files with 1842 additions and 1063 deletions

View File

@@ -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 };