jschneider1207 / excloudinary Goto Github PK
View Code? Open in Web Editor NEWElixir client for Cloudinary
License: MIT License
Elixir client for Cloudinary
License: MIT License
Because Application.get_env is used at compile time to fetch the values, ExCloudinary doesn't work with releases that are using REPLACE_OS_VARS to set the api_key, secret, etc. via environment variables.
Would you consider using something like DeferredConfig instead? This would give people using the library more flexibility in their configuration.
I am getting timeout error when i try to upload an SVG file.
iex> ExCloudinary.upload_image("/Users/star/Desktop/test.svg" , [] , 400000)
{:error, %HTTPoison.Error{id: nil, reason: :timeout}}
Even after supplying a large timeout , the request ends within the default timeout of 5000.
Is there any other way to over ride this ?
Will use the following versions:
* Stack cedar-14
* Erlang 18.2.1
* Elixir 1.2.3
And stacktrace:
remote: == Compilation error on file lib/ex_cloudinary/client.ex ==
remote: ** (CompileError) lib/ex_cloudinary/client.ex:50: invalid literal nil in
<<>>
remote: (elixir) src/elixir_bitstring.erl:149: :elixir_bitstring.build_bitst
r/4
remote: lib/ex_cloudinary/client.ex:50: (module)
remote:
remote: could not compile dependency :ex_cloudinary, "mix compile" failed. You c
an recompile this dependency with "mix deps.compile ex_cloudinary", update it wi
th "mix deps.update ex_cloudinary" or clean it with "mix deps.clean ex_cloudinar
y"
remote:
remote: ! Push rejected, failed to compile elixir app
remote:
remote: Verifying deploy...
remote:
remote: ! Push rejected to kpsz.
remote:
To https://git.heroku.com/kpsz.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/kpsz.git'
Hey,
In our use case, we're upload pretty big pictures, which may take >5s to be uploaded, which means we need a higher timeout. HTTPoison supports higher timeouts (https://github.com/edgurgel/httpoison/blob/master/lib/httpoison/base.ex#L128), but we can't set them using excloudinary.
Would you merge a PR that allowed users of excloudinary to set timeouts in upload_image
?
Thanks,
Thomas
Please consider adding feature deleteing image by it's link.
Hi sschneider1207:
How do we configure ExCloudinary to accept video stream uploads instead of images directly from my Phoenix application?
Hey,
In our codebase, we have helpers that transcribe options to URL params to display images from Cloudinary using their image transformation API (http://cloudinary.com/documentation/image_transformations). Would you like us to submit a PR to have those in ex_cloudinary?
Thanks,
Thomas
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.