cloudinary

Cloudinary - Upload preset must be in whitelist for unsigned uploads

允我心安 提交于 2019-12-13 19:27:17
问题 I want to upload image, to Cloudinary, taken directly from camera in Ionic using cordova camera plugin. I am getting an error of code 1, having message "upload preset must be in whitelist for unsigned uploads." How to solve this error.Please help. my edited js code is: $scope.cameraopen = function(){ var options = { quality : 100, destinationType : Camera.DestinationType.FILE_URI,//FILE_URI sourceType : Camera.PictureSourceType.CAMERA, allowEdit : false, encodingType: Camera.EncodingType.JPEG

Overlay a fetched image over itself (with transformations) with Cloudinary

核能气质少年 提交于 2019-12-13 08:24:23
问题 I would like to generate an image with to versions of the same fetch image, like this one: Here are the two versions: The background: https://res.cloudinary.com/nho/image/fetch/w_1024,h_512,c_thumb,g_auto,q_auto,f_auto/e_brightness:80/e_blur:3000/https://nicolas-hoizey.com/2016/08/a-bridge-not-so-far.jpg The overlay: https://res.cloudinary.com/nho/image/fetch/w_1024,h_512,c_fit,q_auto,f_auto/https://nicolas-hoizey.com/2016/08/a-bridge-not-so-far.jpg I don't understand how to do that with the

Cloudinary - direct delete , jquery file upload, hidden fields

喜欢而已 提交于 2019-12-13 05:06:37
问题 I did multiple image upload direct from browser using jquery file upload + cloudinary and I need to build direct delete of uploaded image also. I upload image using this file tag <input name="file" type="file" class="cloudinary-fileupload" data-cloudinary-field="image_id[]" data-form-data=" ... html-escaped JSON data ... " multiple="multiple > </input> after uploading, it creates hidden field like this <input type="hidden" name="images_id[]" value="image/upload/v1404930923/image_name"> What I

Cloudinary node.js progress of uploading

旧城冷巷雨未停 提交于 2019-12-13 03:47:27
问题 I used cloudinary in angularjs web SPA and there was nice callback named .progress : .progress(function (info) { //file.progress = Math.round((e.loaded * 100.0) / info.total); //file.status = "Uploading... " + file.progress + "%" console.log(info); }) which was basically logging object with data about uploading status info. Now I'm wondering if I'm able to somehow get same progress when uploading by nodeJS code on server side cloudinary.v2.uploader.upload(path, { resource_type: "video" },

Direct Upload to Cloudinary from Browser Bad Request

蹲街弑〆低调 提交于 2019-12-13 01:19:51
问题 i'm getting a 400 bad request error when trying to upload to cloudinary with the following code: $("input.cloudinary-fileupload[type=file]").cloudinary_fileupload(); $.cloudinary.config({"api_key":"6586856745648955","cloud_name":"some-cloud"}); $http.get("http://localhost:3000/story/secret") .then(function(res){ var CLOUD_API_SECRET = res.data.CLOUD_API_SECRET; var obj = { "timestamp": Date.now(), "callback": "http://localhost:3000/cloudinary_cors", "signature": CLOUD_API_SECRET, "api_key":

Where to cleanup cloudinary file uploads after rspec/cucumber run

一个人想着一个人 提交于 2019-12-12 21:17:22
问题 I use fixture_file_upload in my FactoryGirl methods to test file uploads. Problem is that after cleaning the database, all these uploaded files remain on Cloudinary . I've been using Cloudinary::Api.delete_resources using a rake task to get rid of them, but I'd rather immediately clean them up before DatabaseCleaner removes all related public id's. Where should I interfere with DatabaseCleaner as to remove these files from Cloudinary ? 回答1: Based on @phoet's input, and given the fact that

seed cloudinary photos for rails app

醉酒当歌 提交于 2019-12-12 06:56:17
问题 ) I have some cloudinary's photos and I would like to make a seed (in my rails app). I'm using Carrierwave. In my seed, I try to put the cloudinary's url image : Course.create! ({ photo: "fismpnq3zma80dc2ovjt.jpg" )} But it's don't work. What can I do ? If I ask by console : pry(main)> c = Course.first .... pry(main)> c.photo @cache_id=nil, @file=nil, @filename=nil, .... @model=#<Way:0x00007f80e7a3a9c0 photo:nil, .... @mounted_as=:photo, @versions=nil> 回答1: In order to use the create method,

Cannot upload files to Cloudinary

半世苍凉 提交于 2019-12-12 04:58:35
问题 Cloudinary won't let me upload XLS files when it says they support it. I'm using the Heroku add-on. C:\Users\Chloe\workspace\fortuneempire>rails console Loading development environment (Rails 5.0.2) irb(main):001:0> Cloudinary::Uploader.upload('C:\Users\Chloe\Documents\Chocolate_Store1.xls') CloudinaryException: Invalid image file from C:/ruby23/lib/ruby/gems/2.3.0/gems/cloudinary-1.8.0/lib/cloudinary/uploader.rb:336:in `block in call_api' http://cloudinary.com/faq Can I host any type of

Image object can only be logged to the console

江枫思渺然 提交于 2019-12-12 03:44:37
问题 I am trying to store the image object in a constructor variable but it comes up undefined, at the moment I can only log the object to the result. I am trying to get the object data from the class method getUserImage(); but when I try storing the object in this._userImage it shows undefined. Again, only console.log(result) only works :( Error: TypeError: Cannot read property '_userImage' of undefined at /home/jd/Projects/game-site/app/Http/Helpers/ImageUploader.js:23:11 at IncomingMessage.

Meteor Lepozepo Cloudinary Generate Signature

╄→尐↘猪︶ㄣ 提交于 2019-12-12 03:43:46
问题 I am trying to upload an image in Meteor with the https://github.com/Lepozepo/cloudinary package. But I am not quite sure how to generate a url. Without it, I get a 401 error. Server Cloudinary.config({ cloud_name: 'sample', api_key: '1234567890', api_secret: '1AbCDEE789101010' }); Cloudinary.rules.signature = function() { return this.userId; }; Client $.cloudinary.config({ cloud_name: 'sample', api_key: '1234567891234567' }); 'change #image-upload' (event) { let files; files = event