Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

angular2-image-upload

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular2-image-upload - npm Package Compare versions

Comparing version 0.2.1 to 0.3.0

2

package.json
{
"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!'"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc