can't upload epub/zip file [reactjs]
when i try and upload epub file , i get respone
{"error":{"message":"Unsupported ZIP file"}}
what am i doing wrong here:
const formData=new FormData();
formData.append("resource_type", "auto");
formData.append("file", file);
formData.append("upload_preset", config.upload_preset);
formData.append("api_key", config.api_key);
formData.append("timestamp", (Date.now() /1000) |0);
await axios.post(cloudinaryUploadUrl, formData, {
headers: { "X-Requested-With":"XMLHttpRequest",},
}).then(response => {
constdata=response.data;
gUrl=gUrl.concat([data.secure_url]);
})
1
-
Hi,
We are checking the issue with our dev team and will update you with any insights.
0 -
never mind,I was using link :to upload raw files instead ofhence the issue is solved 😅0
-
Thank you for the update!
Glad to hear it's working!
0
Post is closed for comments.
Comments
3 comments