Basic uploader with config for uploading an image
The header and method fields are optional, If the method field is not placed, the method would default to post. Also the header field is expected to be an object and is for authorization purposes.
Uploading a pdf file and changing the theme
The accepted-file-type field needs to be set to application/pdf for the uploader to upload a pdf document where as the theme field is an optional one. by default the theme is set to circlular preview area and the accepted file types are set to
the following images jpeg,jpg,png and bmp;
Fields supported by custom style
Resizing an image
Both the resize and height fields are required for the image to be resized, the uploader will throw and error in case only one of the fields are missing.