Cloudinary with nextjs13 (app router)
Unanswered
Sun bear posted this in #help-forum
Sun bearOP
Hello, im trying to use next-cloudinary for file upload (format: pdf, docx) im using the CldUploadButton:
<CldUploadButton uploadPreset={process.env.CLOUDINARY_CLOUD_PRESET} /> its looking like this https://i.imgur.com/bwUUvAN.png but if im clicking on the Upload button i just get this https://i.imgur.com/26Sot3U.png i cant figure out the problem please help me29 Replies
Bruh why upload on imgur
Sun bearOP
@Clown wdym?
oh
ik
Like upload them directly, i hate imgur
So its infinitely loading?
No errors?
Sun bearOP
yea
no errors
Try checking browser logs
Sun bearOP
but not getting for the button errors
Can you upload images as normal?
Sun bearOP
like on the site?
@Clown on the cloudinary site?
Directly using the upload widget
@Clown Directly using the upload widget
Sun bearOP
no the upload widget is not working
if im klicking on upload there is the infinit loop
Ohhhh
Sun bearOP
do you know the problem?
I think it has to do with the upload preset being wrong or something. Otherwise its a bug probably.
Make sure you are on the latest version of Next and next-cloudinary
yea im on the latest version
You have all three env vars set? The cloud name, api key and secret key
If yes, then it might be a upload preset problem but im not sure anymore. You'll have to wait for someone else to answer this unfortunately