cloudinary

Multiple Uploads in cloudinary using Node Js and ForEach loop

∥☆過路亽.° 提交于 2021-01-29 09:22:08
问题 I have an input tag to upload multiple images and upload them to cloudinary using cloudinary and formidable packages. Ideally, i wanted to pull the URL and save it in my DB where i have all the rest information. But failed to retrieve the URLs shown below in array. Target it to create an object to be saved in the DB with the URLs. app.post("/newcampbook",(req,res)=>{ new formidable.IncomingForm({ multiples: true }).parse(req,(err,fields,file)=>{ if(!err){ var pathArray = []; file.image

cloudinary image doesn't show up

跟風遠走 提交于 2021-01-28 09:01:48
问题 i'm using next js and cloudinary so I uploaded the image to the cloudinary and put the url in the react The url is https://res.cloudinary.com/doqurzmbt/image/upload/v1594709094/google-analytics-ux_g6w5ti.jpg but the image did not show up in react this is my codesandbox https://codesandbox.io/s/cool-christian-y64eb?fontsize=14&hidenavigation=1&theme=dark so I tried I just wrote a general image tag and a cloud-react npm but also did not work but the other link works very well what is the

How to replace an image in cloudinary and keep the same URL?

≯℡__Kan透↙ 提交于 2021-01-28 02:50:49
问题 I have an image in cloudinary that I would like to replace but keep the original URL. Would it be possible? 回答1: Yes it is possible to update an image and keep the same URL. When you upload the new image you want to make its public_id be the same as the existing image you're trying to replace. Then your Cloudinary account will be updated with the new image overriding the old one. However note that if the original (older) image was already accessed, it might get cached in the CDN. Here is a

Swagger NodeJS File Upload

家住魔仙堡 提交于 2021-01-04 06:44:32
问题 Solution: Had an error in my swagger contract, correct definition of a fileupload should look like this: parameters: - in: formData name: file description: The file to upload required: true type: file Thank you for the hint! Original question: I have a problem regarding my Swagger/NodeJS API. I want to receive fileuploads and store the retrieved file with another cloud service. Sadly, the file does not arrive in the format I expect it to be. This is what I receive in req.swagger.params.image

HttpRequestException Error while copying content to a stream (Cloudinary upload)

不问归期 提交于 2020-12-13 03:11:03
问题 im trying to build out a project, that users can upload small videos to and ive created this class to handle my cloudinary code on how to upload a video. it works fine for videos that are very short like 0.3 sec videos but when i try to upload more than 0.10 secs worth i get an exception "System.Net.Http.HttpRequestException: Error while copying content to a stream." The videos are being uploaded to cloudinary heres the code public class VideoAccessor : IVideoAccessor { private readonly

HttpRequestException Error while copying content to a stream (Cloudinary upload)

丶灬走出姿态 提交于 2020-12-13 03:09:06
问题 im trying to build out a project, that users can upload small videos to and ive created this class to handle my cloudinary code on how to upload a video. it works fine for videos that are very short like 0.3 sec videos but when i try to upload more than 0.10 secs worth i get an exception "System.Net.Http.HttpRequestException: Error while copying content to a stream." The videos are being uploaded to cloudinary heres the code public class VideoAccessor : IVideoAccessor { private readonly

Cloudinary image upload from React: am including Cloudinary unsigned preset but get “Upload preset must be specified when using unsigned upload”

十年热恋 提交于 2020-12-12 11:10:00
问题 I'm trying to construct a simple Cloudinary image upload based on this codepen example: https://codepen.io/team/Cloudinary/pen/QgpyOK -- I've converted it to work with fetch but even though I've gone to my Cloudinary settings and created an unsigned upload preset, which I'm providing to the headers, I'm still getting an error POST https://api.cloudinary.com/v1_1/myproject/upload 400 (Bad Request) with the error message Upload preset must be specified when using unsigned upload The code I'm

Cloudinary image upload from React: am including Cloudinary unsigned preset but get “Upload preset must be specified when using unsigned upload”

邮差的信 提交于 2020-12-12 11:09:37
问题 I'm trying to construct a simple Cloudinary image upload based on this codepen example: https://codepen.io/team/Cloudinary/pen/QgpyOK -- I've converted it to work with fetch but even though I've gone to my Cloudinary settings and created an unsigned upload preset, which I'm providing to the headers, I'm still getting an error POST https://api.cloudinary.com/v1_1/myproject/upload 400 (Bad Request) with the error message Upload preset must be specified when using unsigned upload The code I'm

Cloudinary image upload from React: am including Cloudinary unsigned preset but get “Upload preset must be specified when using unsigned upload”

风格不统一 提交于 2020-12-12 11:09:26
问题 I'm trying to construct a simple Cloudinary image upload based on this codepen example: https://codepen.io/team/Cloudinary/pen/QgpyOK -- I've converted it to work with fetch but even though I've gone to my Cloudinary settings and created an unsigned upload preset, which I'm providing to the headers, I'm still getting an error POST https://api.cloudinary.com/v1_1/myproject/upload 400 (Bad Request) with the error message Upload preset must be specified when using unsigned upload The code I'm

How to upload local image file on React Native app to Rails api?

亡梦爱人 提交于 2020-07-16 07:11:15
问题 I'm having trouble understanding how a local file path from a smartphone could possibly get uploaded on the server side with a Rails api for instance. The file path that we're sending to the backend doesn't mean anything to the server? I'm getting a uri from the response like this: file:///Users/.../Documents/images/5249F841-388B-478D-A0CB-2E1BF5511DA5.jpg): I have tried to send something like this to the server: let apiUrl = 'https://vnjldf.ngrok.io/api/update_photo' let uriParts = uri.split