Socket
Socket
Sign inDemoInstall

@binssoft/multi-uploader

Package Overview
Dependencies
10
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @binssoft/multi-uploader

A plugins to build your own multi uploader for your angular application. This plugin will help you to creat multiple document uploader in your application.


Version published
Maintainers
1
Created

Readme

Source

@binssoft/multi-uploader

A plugins to build your own multi uploader for your angular application. This plugin will help you to creat multiple document uploader in your application.

Build Status Support Support Support License

Please support this project by simply putting a Github star. Share this library with friends on Twitter and everywhere else you can.

Table of contents:

Getting started

Installation

npm install @binssoft/multi-uploader --save

Implementation

import "MultiUploaderModule" in your application module. For example: app.module.ts

import {MultiUploaderModule}  from '@binssoft/multi-uploader';;
@NgModule({
    imports:[
	    MultiUploaderModule
	    ...
    ]
})
export  class  AppModule { }

add configration in your component. For example : app.component.ts

export  class  AppComponent  implements  OnInit {

 config:any = null;
 ngOnInit() {
     this.config = {
        preview:true,
        type:'base64',
        upload:{
            url:'http://localhost:8080/api/1.0/upload-file',
            method:'POST',
            body: {
                ...
                _id:1,
                ...
            },
            headers: {
                "Content-Type": "application/json"
            }
        }
    }
}

			

Add multi-uploader html tag in your component html. For example : app.component.html

<multi-uploader  [config]="config"></multi-uploader>
  • [config] : to set the configuration of upload

Settings Option

DescriptionDefault Value
typebase64 or binarybase64
previewshow the preview or notfalse
uploadupload api configuration
upload.urlupload api url
upload.methodupload api method POST, PUT
upload.bodyupload api body
upload.headersupload api headers

Demo

Click Here for the demo

Creator

Tonmoy Nandy

License

The MIT License (MIT)

FAQs

Last updated on 09 Mar 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc