cloudinary

Cloudinary not being recognized in Django

随声附和 提交于 2019-12-12 03:24:55
问题 Hey I am trying to replace storing files to using cloudinary in my django app. I add the following into my models.py class RegisterUser(models.Model): user=models.OneToOneField(User,on_delete=models.CASCADE) biography = models.CharField(max_length=1000000,blank=True) research_place = models.CharField(max_length=1000000,blank=True) studies = models.CharField(max_length=1000000,blank=True) image = models.ImageField(blank=True,null=True,upload_to='uploaded_images',default ="uploaded_images

public_id doesn't match between cloudinary and carrierwave

若如初见. 提交于 2019-12-12 03:18:17
问题 I'm using CarrierWave and Cloudinary to upload multiple pictures to my blogposts. I upload them from my browser. This happens with the use of a file field in the post form. <%=file_field_tag "images[]", type: :file, multiple: true %> When the form is being submitted, a picture instance is created for each one of the images and the image is being uploaded to Cloudinary. def create @post = Post.new(post_params) if @post.save if params[:images] params[:images].each do |image| @post.pictures

Ionic Take pictures cannot upload to cloudinary using unsigned upload

我是研究僧i 提交于 2019-12-12 02:57:47
问题 I am trying to take picture using cordova plugin and upload to cloudinary using ionic browser. I setup the unsigned upload in cloudinary, and basically took the logic from https://calendee.com/2015/01/15/posting-images-to-cloudinary-in-ionic-apps/ to upload to cloudinary. I have written logic all in DashCtrl controller just for easiness to see everything. the code is as follow: angular.module('starter.controllers', []) .controller('DashCtrl', function($scope, $cordovaCamera,

upload image blob to Cloudinary

走远了吗. 提交于 2019-12-12 02:32:46
问题 Im using react and react-router on the frontend, node+express as my backend and cloudinary to store my image files. The issue Im having is that the cloudinary api method cant seems to open/parse the data blob where the image is stored { images: { preview: 'blob:http://localhost:8080/19526dcc-b67d-4697-b112-e5480de61d03' } } cloudinary.v2.uploader.upload(body.images.preview, function(result) { console.log(result) }) The ERROR response: { Error: ENOENT: no such file or directory, open 'blob

public_id is not defined Meteor+Cloudinary

拥有回忆 提交于 2019-12-12 02:16:16
问题 I get the above error message for image upload function using Lepozepo: CLoudinary package and the following details. console.log shows successful upload and a file. I do not see an image appearing after the upload. The profile image is also not changed. Probably undefined public_id, therefore unable to save it to Meteor.userId()? progress bar doesnt show up The delete button error 3rd error message after changing delete code The codes below: Server's config.js Cloudinary.config({ cloud_name

DataError value too long for type character varying(100)

喜你入骨 提交于 2019-12-11 17:58:04
问题 I need to make changes to my profiles object at the admin site in Django, but when I click save, I get the error DataError at /admin/profiles/profiles/31/change/ value too long for type character varying(100). The weird thing is, it worked when I made changes to the same field locally, but when I deployed to Heroku, it gave me the 'DataError'. My image url is the only long string in my object. Side note, I am still using sqlite3 with Heroku because the data is very small. Currently: http:/

Cloudinary upload not allowed with my JWT auth method

喜夏-厌秋 提交于 2019-12-11 15:19:22
问题 I am mostly finished with a Udemy tutorial by Brad Traversy called "MERN Stack Front To Back," and am running into a couple similar errors trying to expand upon his app by giving users the option to upload a photo using Cloudinary. Both errors are related to CORS requests. Before getting into it, it might be important to know about this app is that it uses npm Concurrently to run the Node server then the React/Redux client with the same npm run dev command -- and uses no middleware to deal

sign_cloudinary_upload_request method not found in parse cloud

早过忘川 提交于 2019-12-11 11:47:53
问题 I am using cloudinary with Parse. When I try to upload a video I am getting the below error from my Parse cloud. The error seems to be saying that the method cloudinary.sign_cloudinary_upload_request(…) does not exist. Any ideas how I might fix this? Here is the error: com.parse.ParseRequest$ParseRequestException: TypeError: Object #<Object> has no method 'sign_cloudinary_upload_request' at main.js:64:33 at com.parse.ParseRequest.newPermanentException(ParseRequest.java:348) at com.parse

Image gallery with caption using CloudinaryImage on keystonejs

末鹿安然 提交于 2019-12-11 01:36:41
问题 I'm using keystonejs and CloudinaryImages to create an Image Gallery. { type: Types.CloudinaryImages } I need the ability to add a caption to the images. I was also reading this: https://github.com/keystonejs/keystone/pull/604 but I could not figure out if this option is already in place or not. Any idea? Thanks. 回答1: I had a similar problem, I wanted to be able to give Images there own descriptions and other attributes, while also being included in a Gallery with a Gallery description. This

Get list of images from cloudinary using JavaScript or JQuery

风格不统一 提交于 2019-12-10 23:33:54
问题 I have tried every possible code by following this post but code give me following error XMLHttpRequest cannot load https://api.cloudinary.com/cloud_name/resources/image. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8081' is therefore not allowed access. Code (1) $.get('https://app_key:app_secret@api.cloudinary.com/cloud_name/resources/image'); Code (2) $.get('https://api.cloudinary.com/cloud_name/resources/image'); For both it fails