angular2-image-upload
Advanced tools
Comparing version 0.2.1 to 0.3.0
{ | ||
"name": "angular2-image-upload", | ||
"version": "0.2.1", | ||
"version": "0.3.0", | ||
"description": "An angular component that uploads images using native browser upload or drag-n-drop.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -31,6 +31,19 @@ # Image Upload Module | ||
`[url]="'example.com/images/upload'"` - this is the url which can handle POST queries with `multipart/form-data` Content-Type. The query has a single field called `image`. | ||
`[url]="'example.com/images/upload'"` - this is the url which can handle POST queries with `multipart/form-data` | ||
Content-Type. The query has a single field called `image`. | ||
**Note:** images are sent individually one by one! | ||
#### Custom headers | ||
If you need to send some headers with your request (for example `Authorization` headers), | ||
you can use `[headers]` directive like this. | ||
<image-upload [url]="'my-url.com'" | ||
[headers]="[ | ||
{header: 'Authorization, value: 'MyToken'} | ||
]"></image-upload> | ||
**Note** that headers are sent only if you provide a url. | ||
#### Custom messages | ||
@@ -55,2 +68,5 @@ | ||
[url]="'example.com/images/upload'" | ||
[headers]="[ | ||
{header: 'Authorization, value: 'MyToken'} | ||
]" | ||
[buttonCaption]="'Select Images!'" | ||
@@ -57,0 +73,0 @@ [dropBoxMessage]="'Drop your images here!'" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
35378
76