-
build error: coffee-script module not found
Hi all, I'm getting this build error: "./node_modules/vm2/lib/compiler.js Module not found: Can't resolve 'coffee-script' in '/Users/me/my-project/node_modules/vm2/lib" I'm trying to use the Node SDK in a Next.js 13 Api route, intending to upload an image, the Api route looks like this: import { NextRequest, NextResponse }…
-
Problem retrieving resource details when the resource is in a folder
I'm using the node sdk, to hit the Admin API const result = await cloudinary.api.resource(public_id,{resource_type:'video'}) Which works fine when the resource is in the root, but not when it is in a folder. cloudinary.search returns a public_id of "path/to/my-asset-123456" cloudinary.api.resource returns an error whether…
-
cloudinary.uploader.upload not working
Hi I'm trying to use Cloudinary to store my images in a MERN stack project. So basically I converted my image upload in the front end to a base64 string, have the data:image/jpeg;base64 removed and send them to my API. Now in my Controller file I wrote something like this: const postDog = async(req,res) => { const {name,…
-
word files
how can i upload word files ( doc and docx from node js )
-
message: "Invalid Signature***********************************. String to sign
im using the mern stack and i already have used cloudinary , everything was fine till deploy of backend of render.com and front end on netlify .i get as error : message: "Invalid Signature 5a70a668aa00331f394e11318f26963d3fea6a4a. String to sign -…
-
Uploading issue using cloudinary.uploader.upload
I am using cloudinary in my node.js express server. When i use the line "const result = await cloudinary.uploader.upload(`path`);" i get the correct response the first time i run the code in my server. When i try and make another request to my server i get the following error "{ message: 'Empty file', name: 'Error',…
-
How I can upload image in to cloudinary images using react?
I'm building a project for practice purposes and I want to host my media assets on this platform. I created an Image preset, everything is working fine. I just want to upload it with mern stack and Axios but I'm not able to find the API URL to upload the media. Please help to get this resolve
-
My stream in NodeJS not working.
Hello, I'm having trouble getting a video from Cloudinary and sending it to my front end via streams. Here's the code: import express, { Request, Response } from "express"; import request from "request"; import { PassThrough } from "stream"; import cloudinary from "cloudinary"; import * as dotenv from "dotenv";…
-
Is it safe to have cloud name and preset in front end code? Upload question
I have made an app with the MERN stack. I am using the url endpoint to allow users to upload images to my cloudinary, and then the data from that gets put into a mongodb database which I pull information from. I have the cloud name and preset in my .env file, but .env variables get put into the build folder anyway so it…
-
How can I make a download button with Cloudinary and Javascript? Getting CORS error
I am trying to create a download image button. I've tried several ways and still having trouble with CORS. Does Cloudinary support CORS headers? I am using Javascript/NodeJS. I have tried using a fetch request with CORS headers but it seems like Cloudinary isn't reciprocating. Any help on this? Thanks.
-
how to uploads images from react/node to cloudinary
I need to upload images from the front and that they reach the back to be able to show themselves but I have not been able to find the trick, if someone knows I would greatly appreciate it. I'm using a react library for forms 'React-hook-form', it would be supposed that only with the field and the selected image it would…
-
How can I avoid 401 errors on signed uploads
Hi I have a node.js feature to generate signed urls to then upload them from the frontend of my application. I'm currently trying to upload a jpg from my test suite to check whether the signed urls work or not. The code used can be found below: async getAssetUploadUrl(id: InvoiceId): Promise<Url> { const timestamp =…
-
Moving cloudinary cold data to s3
Hi I would like to move cold data from our storage on cloudinary to s3 but still be able to access it using our cloudinary with transformations if needed.
-
Lets Talk Duplicate Image Detection
I know this is still only in Alpha, but I am super excited about this feature! I am attempting to follow along with the instructions at: https://cloudinary.com/documentation/cloudinary_duplicate_image_detection_addon, but i am getting lost. What I am attempting to do is check our existing library for existing duplication,…
-
Upload video with multer and cloudinary - can't read req.file
In my Mern-Stack I have build a fileuploader using multer and cloudinary. The upload of images works really fine, but when I try to upload a video, the console tells me: "Cannot read property "path" of undefined". I console.log my FormData on the whole way. In my dashboard, my redux-slice, my redux-service. Everywhere the…
-
[JavaScript] Upload Multiple Images at Once Using Cloudinary’s Upload API
If you're working in the Node.js ecosystem and want to upload multiple assets to your Cloudinary account, using our Upload API is going to be your best bet. First, ensure you have the most up to date version of Node.js Next, let's use the Cloudinary Node SDK to simplify our implementation. Our amazing documentation team…