Skip to content

Files

Latest commit

 

History

History

j-FileUploadList

j-FileUploadList

This component can upload files and the result adds into the model. Model must be the array.

Configuration:

  • url {String} URL to upload (default: /api/upload/)
  • accept {String} Optional, a content type for filtering files e.g. image/*
  • multiple {Boolean} Optional, enables multiple files uploading (default: true)
  • progress {String} a path to function(percentage)
  • text {String} a key name for rendering of text value (default: name)

Model:

Server must return Array in the form below:

[
	{
		name: String,
		length: Number,
		url: String
	}
]

Author