Skip to content

italotech/hoodie-plugin-image

Repository files navigation

hoodie-plugin-image

Build Status Dependencies devDependency Status Code Climate

Dependencies

fist of all create a bucket on amazon

before

  hoodie install hoodie-plugin-image

for cordova/phonegap users

  bower install hoodie-plugin-image

Setup client

 <script src="/_api/_files/hoodie.js"></script>

for cordova/phonegap users

  <script src="<bowerdir>/hoodie/dist/hoodie.js"></script>
  <script src="<bowerdir>/hoodie-plugin-image/hoodie.image.js"></script>

API

upload: function (base64, /opitional/ prefix, /opitional/ userData)

return url

save ref on data base of plugin