cloudinary

Library for upload images to cloudinary

cloudinary

THIS VERSION IS DEVELOPING

Module that allows uploading images to cloudinary in an easy way

Installation

Add this to your application's shard.yml:

dependencies:
  cloudinary:
    github: kimvex/cloudinary

Usage

require "cloudinary"
  CLOUDINARY = Cloudinary::Connect.new("api_key", "cloud_name", "preset")

  server = HTTP::Server.new do |context|
    response = CLOUDINARY.upload(
      context,
      "test"
    )

    context.response << response
  end

  server.bind_tcp 8085
  server.listen

Development

To upload images are authentication problems, you have to add a presets that give you that freedom

Go to documentation of cloudinary add-new-preset

  • Step 1: Enter the console of cloudinary
  • Step 2: Go to settings
  • Step 4: Go to the upload tab
  • Step 5: Go down to the section Upload presets and add_upload_preset
  • Step 6: You can add name to your preset or leave it with the name by default and then and important in Signing Mode choose it as unsigned

Contributing

  1. Fork it (https://github.com/kimvex/cloudinary/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

  • kimvex Benjamin de la cruz Martinez - creator, maintainer
Repository

cloudinary

Owner
Statistic
  • 1
  • 0
  • 0
  • 0
  • 0
  • over 5 years ago
  • June 12, 2019
License

MIT License

Links
Synced at

Sun, 22 Dec 2024 14:20:41 GMT

Languages