Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix wrong exception #95

Closed
wants to merge 1 commit into from
Closed

Fix wrong exception #95

wants to merge 1 commit into from

Conversation

ombr
Copy link

@ombr ombr commented Jan 5, 2014

I'm getting this exception :

CloudinaryException (Uploader configured for type private but resource of type private given.)

from :
./lib/cloudinary/carrier_wave/storage.rb:9:

Because storage_type is a symbol and the type given after the upload is a string.

So let's make sure it is a string.

(If I find some time I will write a test case.)

I'm getting this exception : 

CloudinaryException (Uploader configured for type private but resource of type private given.)

from :
./lib/cloudinary/carrier_wave/storage.rb:9:

Because storage_type is a symbol and the type given after the upload is a string. Storage_type

So let's make sure it is a string.

(If I find some time I will write a test case.)
@TalLevAmi
Copy link
Contributor

This won't work in case strorage_type is left for the default nil. Alternative fix in master.

@bonsaiben
Copy link

Is there a workaround for this on the latest gem release or is private image uploading through carrierwave not possible on the latest gem release?

@ombr
Copy link
Author

ombr commented Mar 21, 2014

Hello, this work for me with private image uploading (js enabled and disabled) on the latest Gem.

https://gist.github.com/ombr/8403950

nadavs added a commit that referenced this pull request Mar 25, 2014
… Remove public_id from method parameters, Backward compatibility for old upload_large API, Issue #95 - exception when using storage_type :private, Updating to jQuery plugin v1.0.13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants