cloudinary

CKEditor Carrierwave Cloudinary

流过昼夜 提交于 2020-01-11 03:24:17
问题 I'm trying to get CKEditor to work with Carrierwave and Cloudinary. So far, non-CKEditor enabled views with a regular file upload field are working perfectly with Carrierwave & Cloudinary. However, when I try to upload a file in CKEditor and "Send it to the Server" I'm getting a NoMethodError - undefined method 'each' for "image/jpeg":String: Prior to removing the local storage config from the CKEditor classes it was working, but saving the file locally. Here is my current CKEditor uploader:

CKEditor Carrierwave Cloudinary

你说的曾经没有我的故事 提交于 2020-01-11 03:24:06
问题 I'm trying to get CKEditor to work with Carrierwave and Cloudinary. So far, non-CKEditor enabled views with a regular file upload field are working perfectly with Carrierwave & Cloudinary. However, when I try to upload a file in CKEditor and "Send it to the Server" I'm getting a NoMethodError - undefined method 'each' for "image/jpeg":String: Prior to removing the local storage config from the CKEditor classes it was working, but saving the file locally. Here is my current CKEditor uploader:

Correct way for uploading image bytes to cloudinary

我只是一个虾纸丫 提交于 2020-01-07 04:01:31
问题 I am using http://cloudinary.com/documentation/image_upload_api_reference as reference. There are two cases in which I want to upload the files to cloudinary. Upload image by directly giving url link. Upload image bytes by taking them from different source. I could solve case 1, but had trouble in 2nd. I am pasting my code flow below for reference. import cloudinary import cloudinary.uploader from io import BytesIO from StringIO import StringIO def upload_image_to_cloudinary(img_tag): logging

Django admin site does not pick current image URL

泄露秘密 提交于 2020-01-06 08:09:27
问题 I am trying to edit the fields of one of my objects in the Django admin site, I also have a Cloudinary image field in my model. The issue is, anytime I try to make an edit to one of the CharField s of my object, I get the error: value too long for type character varying(100) which I later found out that every time I finish my edits and I am trying to save, it looks for a new image to replace the current image of my imagefile even though I did not touch my imagefile , thus it returns an empty

upload captured image to Cloudinary directly in Android

强颜欢笑 提交于 2019-12-30 02:27:11
问题 I want to capture a picture and upload it to Cloudinary directly. How can I know the name of the pic to set it at the upload statement cloudinary.uploader().upload("nameofthepic", Cloudinary.emptyMap()); . Here is my code: public class Camera extends ActionBarActivity implements View.OnClickListener { Button b; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.camera); b= (Button) findViewById(R.id.button); b

Upload video to Cloudinary

冷暖自知 提交于 2019-12-24 22:30:25
问题 I currently have a Rails based site that is hosted on Heroku and allows users to upload personal images and videos. I am currently storing them on S3 with the video encoding being done by Zencoder. So far pretty happy with this however I would like to use a service such as Cloudinary. I have created a demo app that uploads to Cloudinary and am very happy with the way it works but with video this does not seem to be working. I am aware that Cloudinary does not do any encoding and I am not

How to generate signature in java and use it in jQuery (Cloudinary)?

被刻印的时光 ゝ 提交于 2019-12-24 11:50:23
问题 I'm trying to upload images to Cloudinary using jQuery and Java. I tried the code in this link with no luck. I'm getting errors in generating the signature. Does anyone have an example of a working implementation for generating the signature? That would be more helpful. 回答1: Place the following code in your index.jsp: <html> <head> <title></title> <script src='jquery.min.js' type='text/javascript'></script> <script src='jquery.ui.widget.js' type='text/javascript'></script> <script src='jquery

How to upload files from dropzone to cloudinary

心不动则不痛 提交于 2019-12-21 22:36:33
问题 var myDropzone = new Dropzone("#product-image-drpzone", { // Prevents Dropzone from uploading dropped files immediately autoProcessQueue: false, addRemoveLinks: true, autoQueue: false, acceptedFiles: '.jpg,.png,.jpeg,.gif', url: 'https://api.cloudinary.com/v1_1/something/image/upload', //put it in the main url file once done maxfilesexceeded: function (file) { ToasterWrapper.errorMessage('You have uploaded more than 4 images!', false); return; }, init: function () { // You might want to show

Meteor: Cloudinary

末鹿安然 提交于 2019-12-18 13:37:19
问题 I am trying to upload a photo with Lepozepo/cloudinary This is my server and client config server: Cloudinary.config({ cloud_name: '*****', api_key: '******', api_secret: '********' }); client: $.cloudinary.config({ cloud_name: "*******" }); I tried to upload the image with a form html form code: <form> <input type="file" id="userimage" name="userimage"/> <button type="submit">Upload</button> </form> And this is my this is the event for the template Template.signup.events({ // Submit signup

Issue while requesting a file(image/pdf/excel sheet) from server and then pipe to res

只谈情不闲聊 提交于 2019-12-14 04:08:38
问题 Scenario: I have to send user file which is stored remotely in a server(cloudinary) to browser. I'm able to request an image from server and then pipe it to browser but it's not working for other files like pdf, excel sheet, etc. exports.fetchFile = function(req, res, next){ var fileUrl = "/" + req.params.fileUrl; console.log(fileUrl); async.auto({ 'A': function(callback) { var queryObj = { 'myUrl' : fileUrl}; // DB Query to retrieve user file information like url, type, etc. UserFileCtrl