-
upload subfolders
Hi, how are you? It would be a question, I have a product project in NextJs and I wanted to know that I can make each product have its specific mass when it is created. For example: cellular products/cell01 cellular products/cell02 In this case, it would retrieve the product slug and create the subfolder using the product…
-
Getting Error: Must supply api_key
This is my config import { v2 as cloudinary } from "cloudinary"; import fs from "fs"; cloudinary.config({ cloud_name: process.env.CLOUDINARY_CLOUD_NAME, api_key: process.env.CLOUDINARY_API_KEY, api_secret: process.env.CLOUDINARY_API_SECRET,}); console.log("CLOUDINARY_API_KEY", process.env.CLOUDINARY_API_KEY); This prints…
-
How to set access_control with Windows CLI?
Hello! I am trying to upload an asset and set the access_control to token. However, I can't seem to get the formatting right on the command. call cld uploader upload 1.png -o use_filename true -o access_control '[{"access_type": "token"}]' error: upload() takes 1 positional argument but 2 were given It seems to be an issue…
-
There were any update on cloudinary environment V2 to connect with ?
Hi , good day, I am having problem to upload files images from my VPS from hostinger, This error appears: Error: getaddrinfo EAI_AGAIN api.cloudinary.com at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:71:26) { errno: -3001, code: 'EAI_AGAIN', syscall: 'getaddrinfo', hostname: 'api.cloudinary.com' }
-
I tried to upload PDF on Cloudinary using the API, the API returns a path, but when I tried to open
but pdf is uploaded a PDF to my media, but when I try to access it through the URL returned by Cloudinary, it shows this error.
-
Upload image to cloudinary using next js (App router)
I have been trying to upload an image from my next js app to cloudinary using App router version of next js. I will be really happy if someone can look into this for me.
-
dynamic Root URL for raw/upload
This feature is mentioned here https://cloudinary.com/documentation/advanced_url_delivery_options in the context of image types. Is it possible to configure it for raw image types? Thanks Mark
-
Upload API give me 502 Bad Gateway
Hi. I'm in a Next js 13 project. I tried to upload a image using an unsigned upload preset call restaurant and Upload API but it gives me a 502 Bad Gateway. This is my code 'use client' import { useSession } from 'next-auth/react' import { useRouter } from 'next/navigation' import { useState } from 'react' function…
-
Invalid JSON response from server
Hello. So in my Spring application I have this CloudinaryService class with this function that's supposed to take a Base64-enconded image and upload it to Cloudinary: public String uploadFileFromBase64(String base64) { try { @SuppressWarnings("rawtypes") Map uploadedFile = cloudinary.uploader().upload(base64, // the error…
-
Cannot figure out why the image is not deleting
I'm trying to delete an image using the Nodejs SDK. const result = await cloudinary.uploader.destroy(profile.id); But it returns a result of 'not_found' even though I'm specifying the correct public id As you can see in the pics above, the id of the resource in the media lib matches what is in the console (profile.id =…
-
Deprecation Error messages
C:\xampp\htdocs\project\config\cloudinary\vendor\cloudinary\cloudinary_php\src\Cloudinary.php on line 674 [28-Dec-2023 16:28:32 Asia/Kolkata] PHP Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in…
-
the default value of Timeout of Cloudinary's UploadAPI
I am designing a PGM that sends images to Cloudinary using Pythone SDKS. And I am designing a retry to handle errors, but the client is asking for a basis for the number of retries and retry time. So I would like to know the default value of Timeout of Cloudinary's UploadAPI as a reference value.
-
How do I improve the upload speed of videos/large files to cloudinary?
Hi, Ive written the function below to allow users of my website to upload videos to cloudinary. Whilst the function works, it is extremely slow. Its not my internet connection, as I've got 50mbps up and to upload a 30MB file its taking 30-40 seconds. My users will be uploading video files of about 400-500MBs, so this speed…
-
Auto Upload only for images?
I have been successfully using Auto Upload to pull in images. I'm now moving towards non-image files (.csv and .pptx files) and it seems not to work at all - I request the URL and Cloudinary doesn't load them in. Does this only work for Images? Thanks Mark
-
Is there any parameter in upload api that stops eager transformations on uploaded preset images?
The current senario is that 4 eager named transformation is set in upload presets option in setting. Whenever any image is uploaded it produces 4 derived images based on eager transformations. I want to know is there any parameter in upload api that can stop these eager transformations after preset image is uploaded.
-
provider-upload-cloudinary: Why am i getting this error while media library upload
I am trying to upload webm file to my strapi project and i am getting the following error: image 1660×496 71.8 KB my plugins.js file is set to default configuration that is: upload is happening via @strapi/provider-upload-cloudinary which is of version 4.10.1 How can i control the allowed media types.
-
Upload Text Trouble - Custom Font
I'm trying to upload a text on a blank canvas to obtain it's height and width. The text uses a custom font that I've uploaded using the media library. The problem arises whenever I make the request on Postman I receive an image that looks like a default font. I'm assuming the width and height are also not correct either.…
-
Does q_auto create multiple files like f_auto does?
I want to clarify my transformation expenditure when using q_auto. As far as I understand, f_auto creates four different formats of the asset to be served depending on the compatibility of the end-user browser client. I also understand that q_auto analyses each individual asset to determine the optimal delivery quality.…
-
Uploading Files with Incoming Transformations in Postman
I've duplicated the Postman collection and now I'm trying to upload images with the q_auto transformation like this - (with a file selected obviously) No matter what I set the quality too though, I always get a "file size too large" error, showing the same file size for the uploaded file. I can't figure out whether that's…
-
I have a weird error
at the beginning everything worked very well and then I found this error although I didn't change anything in the code : Success:{statusCode: 400, message: "Cannot read properties of undefined (reading 'v2')"}message: "Cannot read properties of undefined (reading 'v2')"statusCode: 400[[Prototype]]: Object can i help me…
-
Why do some files get uploaded while others say "Could not decode base54"?
I have worked with Cloudinary's API for a few years so I'm basically doing the same thing I've always done, but I'm encountering this new issue. I uploaded avif, jpegs, etc and everything worked fine. Then I tried to upload a png which was created from a screenshot on my Macbook. It kept saying Bad Request 400 Could not…
-
I cannot upload images on cloudinary using node js and postman and my credentials are also correct
{ url: undefined, asset_id: undefined, public_id: undefined } this is what i get
-
APIs : cloudinary.uploader().updateMetadata & cloudinary.api().update not working !
Hello dears ! I'm using Java SDK and facing issues with the mentioned APIs and get stuck : 1- uploader().dateMetadata : the callApi behind this method returns 404 error and looks like the not found html content is returned then updateMetadata end up with this exception Invalid JSON response from server A JSONObject text…
-
How can I know that the processing of the uploaded image is completed?
How can I know that the processing of the uploaded image is completed?
-
Some images are 404, some are gone totally
We have been doing some testing on our production instance where we notice that there are so many 404s that has been working before, then suddenly is not. Also, there are some folders where the images inside was completely deleted. We are using the upload API endpoint for uploading…
-
"Private media assets" vs "Token-based authentication" What is the difference?
Hi there Thanks for reaching out. Im trying to upload my image/video as private to restrict access from guest, then i create an Url for that image/video with expired time for specific user (like for sombody logged in my system) I did that by using Providing time-limited access to private media assets. But i also hear about…
-
How to wait until update_stream() finishes?
Hello guys, i am facing the problem, that my backend server is executing the return-Statement before actually finishing the upload_stream()-method. The code: app.post('/changeAvatar', upload.single('file'), async (req, res) => { let url = ""; let cld_upload_stream = cloudinary.uploader.upload_stream( { folder: "avatar" },…
-
Upload fails with 403
hey all, i have been trying to upload to cloudinary via strapi upload provider. but it seem to fail while i have the right credentials in environment variables what am i missing?
-
Coonect Airtable with Cloudinary for uploading images using API
Hey everyone! So we need a script and API to upload the images to Cloudinary from Airtable, get the cloudinary images URLs in to Airtable. The images you see in Airtable comes from an API and the images can change. So let us say that one image gets deleted or added from the API, we need to reflect this change in Cloudinary…
-
Can SEO Suffixes be used to trigger transformations?
When a single image be used with several different SEO suffixes, can each of those suffixes transform that image to an image with different resolutions? The help page suggests (to me) this is possible but I cannot get it to work. Thanks Mark
-
Upload from non-Express Node.js server
I have tried a bunch of different ways to upload images, successfully using the upload widget using signed and unsigned versions. I'm also able to upload an image not using the upload widget using a generated signature returned from our server. One thing I would like to figure out is a solution where I send an image to our…
-
Uploading with Nextjs server action + cloudinary SDK
I dont know how to convert file to something else so it can be uploaded though using cloudinary.uploader.upload async function myAction(formData: FormData) { 'use server' const file = formData.get('getImage') formData.forEach((value, key) => { if (key === 'getImage') { const a = value as File; const blob =…
-
Trying to upload multiple images, but can get only one uploaded,
const Upload = () => { async function handleOnSubmit(event: React.FormEvent<HTMLFormElement>) { event.preventDefault(); const form = event.currentTarget; const fileInput = form.elements.namedItem('getImage') as HTMLInputElement; const formData = new FormData(); let arrayFiles; if (fileInput) arrayFiles = fileInput.files ?…
-
Issue with image upload in production
In production we encounter the bug in the screenshot above when trying to upload images to cloudinary. but in development we don't and everything works fine and we've setup the exact same environment on production as it on development to try and find out the root source of the error all to no avail. Our stack is the main…
-
Why are some of my uploads silently failing the first time or two?
I am using a Next.js API route (i.e. server-side function) to upload a raw file to a specific location within my Cloudinary account. Here is the code: import { v2 as cloudinary } from 'cloudinary' import { Readable } from 'stream'; export default async function uploadInfoJSON(req, res) { console.log("enter upload…
-
Why are my public ID's invalid?
I am using the JavaScript Cloudinary API to upload images and store them on the cloud. Sometimes, I will get an error for having an invalid public_id. Here is an error I recently received - { message: 'public_id ( The Unforgettable Journey10_0) is invalid', name: 'Error', http_code: 400 } Another error - { message:…
-
How can I get progress of file uploading from uploader.upload_stream and pass it to api
I'm developing nextjs app with api routes, I have a route to upload file to cloudinary localhost/api/files/upload. There I send files with axios and receive axios uploadProgressEvent to display it on web page. I see that progress works fine when I upload file to api route, at 100% upload I need to wait more because file is…
-
Sometimes the cloudinary API uploader throws an error trying to upload base64 svg...
Hello! I know that to upload the base64 image I need to use this format data:image/svg+xml;base64,PHN... but sometimes it doesn't work, could you help me? This image works fine: `first.txt` I used these options folder: 'contracts/0x0747118c9f44c7a23365b2476dcd05e03114c747' overwrite:true…
-
Cloudinary Postman collections to make it easier to try our APIs
Postman is a popular tool for running REST API requests, whether it's to get a feel for the request and response parameters or maybe even for automation. We're a big fan at Cloudinary and so we've created our own public workspace with a set of collections that you can fork and use to test out various API calls. To get…
-
When using upload_large it still results in a 413 response
I followed this older post* about timing out due to leveraging large content so I followed the docs to leverage upload_large. I've tried changing the chunk size from 6MB to 5MB with no success. I've also changed the timeout to 3 minutes to no avail. Any ideas on how to fix this?…