Web UI component: j-ImageUploader


  • Info
  • HTML
  • JS
  • CSS
  • Meta

j-ImageUploader

A simple singleton component for uploading of resized images. The component uploads base64 according to the schema defined in options of caller.

Methods:

  • imageuploader/upload(opt) shows a file dialog
    • opt.width {Number}
    • opt.height {Number}
    • opt.background {String} a default background color
    • opt.url {String} important URL where will be image uploaded
    • opt.multiple {Boolean} supports multiple files (default: false)
    • opt.schema {String} default { file: base64, name: filename }
    • opt.quality {Number} default 90
    • opt.callback(response, errors) a callback important

Author