1.1.0 • Published 8 years ago

angular-schema-form-base64-file-upload v1.1.0

Weekly downloads
7
License
MIT
Repository
-
Last release
8 years ago

angular schema form base64 file upload

This add-on provides a very simple base64 file upload with drag and drop.

Usage

The base64 file upload add-on adds a new form type, base64file, and a new default mapping.

Form TypeBecomes
base64filea base64 file upload input
SchemaDefault Form type
"type": "string" and "format": "base64"datepicker

Example

Schema

{
  "type": "object",
  "properties": {
    "image": {
      "title": "Image file",
      "type": "string",
      "format": "base64",
      "maxSize": "500000"
    }
  }
}

Form

[
  {
    "key": "image",
    "placeholder": "Click here or drop files to upload"
  }
]