-
Inquiry About Video Analytics Update Timing
I’m curious about when the video analytics get updated. I’ve tried using the iframe and the cloudinary-video-player along with the CldVideoPlayer from Next.js, but I’m not seeing any updates in the Video Analytics. Anyone know how often this data refreshes? Thanks for any help!
-
I'm getting this weird error: Cannot read properties of undefined (reading 'node')
I'm using cloudinary nodejs api in a next.js 14 server actions. It has been working perfectly until recently. When I remove cloudinary from the project, it works perfectly, whenever i add it, i get this error "TypeError: Cannot read properties of undefined (reading 'node')". Please advise
-
Invalid Signature : String to sign
I am using next js to develop my project. below is the code written at route.ts, I stuck on this issue more than a week. Please someone advise what exactly going wrong on below lines of code. I spent a lot of time to resolve this issue. youtube tutorials, chatGPT doesnot solve my issue. Please point out where is the…
-
Missing dependency: Signed Upload requires an API key
Hi everyone and thanks for your help in advance! I am trying to do a simple signed image upload to my NextJS app but I am getting this error: Missing dependency: Signed Upload requires an API key This is my 'pages/api/sign-cloudinary-params' file import { v2 as cloudinary } from 'cloudinary'; cloudinary.config({…
-
How do you modify the public id for an image asset uploaded with the CldUploadWidget component?
I have a nextjs app that is implementing Cloudinary uploads using the CldUploadWidget react component. Everything is working great except that I have been unable to modify the public id for uploaded assets. I have my upload preset configured in my cloud settings to allow overwrites, unique filename: false, and use…
-
NextJS 14 Image upload with Server actions.
Hi there folks.I've had some struggle with getting my code working in NextJS with Server actions and TypeScript. Now that I solved it. I would like to share my code in case somebody else stumbled upon the same problem. Lets first start with the page.tsx. I use Shadcn for my forms and custom hooks for passing some props to…
-
Preserve multiple AI transformations
Hello, I have a NextJS application and I use the CldUploadWidget to upload images and the CldImage component to apply transformations. What I'm trying to do is the following: 1. The user uploads an image with a guy with black shirt and black hat. 2. Applies transformation to recolor the shirt to be white with the recolor…
-
Is there a way to crop custom coordinates using the React/NextJS SDK?
Hi! We use the nextJS component for displaying cloudinary images which works great. We want to build in the ability for admins to crop and move images around for profile pictures, which gives us a "zoom/scale" value and an x/y coordinate. It looks like both are supported via API, but not clear how we'd do this in our react…
-
How can I upscale images programmatically without restriction to image size for my nextjs project?
I am building an AI image and video editing web app using nextjs. Based on the AI image feature I would like the cloudinary api upscale feature to upscale any images irrespective of the image size. How do I achieve that? Here is the cloudinary api uspscale feature code am using in my project "import { upscale } from…
-
Uploading images to cloudinary via Nextjs + React-Hook-Form + Zod
Hi, after resolving a problem with my next app, i decided to make a quick tutorial from what i have done, making it clear that this can be not the best example, its just a test. I used React-Dropzone to catch values and React-Hook-Form to handle my form (that contains name, description and an optional array of images): (i…
-
"Error: Must supply api_key" in Heroku log
Everything works fine when I run my app on the development side but after I deploy to Heroku and my site is in production, I see in the Heroku logs.. "Error: must supply api_key". Not sure what's happening here, does it have something to do with the "unsigned" setting? I made the update to "Unsigned uploading enabled" but…
-
Make file available upon user button click.
Using Node.js/Next.js. My API grabs some data, generates an excel file and then uploads the file to Cloudinary. When the user clicks a button I need the excel file to be available to them for download. It appears the excel file link is saved in result.secure_url. I'm stuck on how to get this link into a clickable button. I…
-
NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME not recognized
made my .env.local with: NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME="fdfsdfsdf" NEXT_PUBLIC_CLOUDINARY_CLOUD_PRESET="sdfnbyy" run with npm run dev on localhost ▲ Next.js 14.1.0 - Local: http://localhost:3000 - Environments: .env.local ✓ Ready in 1851ms but when i try to run widget i got this error: Uncaught Error: A Cloudinary…
-
Rendered image dimensions don't seem to match sizes attribute?
Hi, I'm building a website using Next.js and serving images using Cloudinary. I am using the next/image component and can see the srcset of 16, 32, 48, 64, 96, 128, 256, 384, 640w... in my rendered image's attributes. I am using g_auto,f_auto,c_fill,w_XXX,q_auto:best. I'd like to know why the returned intrinsic size…
-
search API subfolder
Hi! I am new to Cloudinary so bear with me... Right now the following code grabs all of my Cloudinary media, but I just need assets from a folder/subfolder. How can I specifically grab assets within a particular folder using the Cloudinary search API? Thanks! const results = (await cloudinary.v2.search…