Code Monkey home page Code Monkey logo

kt-1234's People

Watchers

 avatar  avatar

kt-1234's Issues

fix service / directive to upload to cloudinary

https://github.com/jbcpollak/cloudinary_angular:

  # cloudinaryData = {
  #   url: 'https://api.cloudinary.com/v1_1/YOUR_CLOUD_NAME/auto/upload',
  #   formData : {
  #      timestamp : 1375363550;
  #      tags : sampleTag,
  #      api_key : YOUR_API_KEY,
  #      callback : URL TO cloudinary_cors.html,
  #      signature : '53ebfe998d4018c3329aba08237d23f7458851a5'
  #   }
  #   start : function() { ... },
  #   progress : function() { ... },
  #   done : function() { ... }
  # }
  #    *  The start, progress, and done functions are optional callbacks. Other jquery.fileupload callbacks
  #        *  should be supported, but are untested.
  #        *
  #        *  Functions are automatically wrapped in scope.$apply() so it is safe to change variable values
  #        *  in your callbacks.

Trying to do a remote upload http://cloudinary.com/documentation/upload_images#remote_upload

Set the class name to 'cloudinary-fileupload' (alternatively, selection of input fields can be done programmatically). 
Set data-cloudinary-field to the name of the input field that should contain the upload reference.
Set data-form-data to be JSON representation of the upload API params. The mandatory fields are api_key, timestamp, signature and callback. Any additional incoming or eager transformation parameters can be specified.
The signature needs to be generated on the server-side for correct authentication.
The callback should point to a public URL of your web application that has the cloudinary_cors.html file. It is included in our jQuery plugin package and is required for iframe fallback upload...

continued on http://cloudinary.com/blog/direct_image_uploads_from_the_browser_to_the_cloud_with_jquery
related http://dailyjs.com/2013/02/21/cloudinary/

jcrop


      # # FIXME 
      # $("#preview").css
      #   width: Math.round(rx * boundx) + "px"
      #   height: Math.round(ry * boundy) + "px"
      #   marginLeft: "-" + Math.round(rx * cords.x) + "px"
      #   marginTop: "-" + Math.round(ry * cords.y) + "px"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.