Untitled

 avatar
Anis
plain_text
a month ago
351 B
2
Indexable
Never
 const formData = new FormData();

formData.append("file", androidAppLogo);
formData.append("upload_preset", "windfootball");

const { data: uploadedAndroidAppLogo } = await axios.post(
`https://api.cloudinary.com/v1_1/${process.env.NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME}/image/upload`,
formData
);

androidAppLogoUrl = uploadedAndroidAppLogo.secure_url;
Leave a Comment