-
I cannot upload image using unsigned upload, and I don't know why. here's my code
if(pics.type === "image/jpeg" || pics.type === "image/png"){ const data = new FormData(); data.append("file", pics); data.append("upload_preset","chat-app"); data.append("cloud_name", "myfapiassesment"); fetch("https://api.cloudinary.com/v1_1/myfapiassesment/image/upload", { method:"post", body: data, }).then((res) =>…
-
Uploading with the same public id
Hi there. I am trying to have an image accessible at a certain link: "/upload/public_id" and for that to be overrideable and for the new image to completely replace the old, and be accessible by the same link. The problem I currently have is that the first image for a certain URL will work as expected but then further…
-
Upload Widget: Set default filters values in Advanced (Relevance and Orientation)
How can I set those filters to a given default value? Thanks.
-
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,…
-
i deployed my django webapp on pythonanywhere but users cant upload images sucessfully to cloudinary
Unexpected error - MaxRetryError("TCPKeepAliveHTTPSConnectionPool(host='api.cloudinary.com', port=443): Max retries exceeded with url: /v1_1/dug5dj4uz/image/upload (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f2279fdc580>: Failed to establish a new connection: [Errno 111] Connection…
-
How can I upload images and videos and get the url as a response using django-rest-framework?
Hi, please help me out. models.py class Posts(models.Model): image = models.ImageField(null=False) video = models.FileField( null=False, validators=[FileExtensionValidator(allowed_extensions=['MOV','AVI','MP4','WebM'])]) title = models.CharField(max_length=50) about = models.TextField() serializers.py class…
-
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',…
-
Uploading images and saving urls in database
Hi, I need to make a feature for users to be able to upload an image and then get the url from this image and save it to database so I can map over it and display it in my app. So far I understand that uploading the files from frontend can be done with cloudinary widget but how to get url back? I am using next.js and…
-
Is it possible to limit access to a specific folder using the Upload and/or Media Library Widget?
Hello everyone, I'm building an application where my clients are able to upload images to Cloudinary. In order to make their experience better I would like to use the Upload Widget as well as the Media Library Widget. But I don't want them to have access to all images, only to those they have uploaded. My idea was to…
-
Uploading SVGs
Hi, when I upload an SVG to my folder it is converted into an 'Authenticated' asset an I am unable to get a public URL. Can I convert I into public? Thanks
-
Special character within metadata in signed api upload
Hello guys, I've built an application to upload files through the signed api upload. The upload works perfect. Now I would like to extend the upload with metadata. I've created different structured metadata fields, e.g. sku, year and product name. Using sku and year works smooth. But if I use the field product_name which…
-
Can I run the Cloudinary-AI-Background Removal from a React function
I am trying to call the Cloudinary-AI-Background removal from a function in my Nextjs project. My plan is to upload the image using the upload widget and remove the background with a button, i also want to get the URL of this new optimized image so I can store it on my database and display it in my application. Can this be…
-
Can I use cloudinary in bulk?
I have a music website. Anyone can download mp3 songs from this website. This website has a lot of songs with low-quality pictures. I want to deal with them. Can I use Cloudinary for bulk pictures at the same time?