# easy-file-uploader

Latest version **0.0.8-beta** (published 2022-11-09) · 0 weekly downloads

## Install

```sh
npm install easy-file-uploader
pnpm add easy-file-uploader
yarn add easy-file-uploader
bun add easy-file-uploader
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.8-beta |
| Published | 2022-11-09 |
| First published | 2022-07-27 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 165 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | charles.skinner@dpworld.com |
| Maintainers | charles221133, mathew_dpworld, charlesskinner |

## Links

- npm: https://www.npmjs.com/package/easy-file-uploader
- npm.io page: https://npm.io/package/easy-file-uploader

## Dependencies (1)

- [tslib](https://npm.io/package/tslib.md) ^2.0.0

## Recent versions

- 0.0.8-beta (latest) — 2022-11-09
- 0.0.8 — 2022-10-18
- 0.0.7 — 2022-08-26
- 0.0.6 — 2022-08-23
- 0.0.5 — 2022-08-04
- 0.0.4 — 2022-07-27
- 0.0.2 — 2022-07-27

## README

# Example Usage

<easy-file-uploader (fileToUpload)="onFileBrowsed($event)" [maxFileSize]='maxFileSize' [maxFileSizeType]='maxFileSizeType' [maxNumberOfFiles]='maxNumberOfFiles' [supportedFilesTypes]='supportedFilesTypes' [isMultipleAllowed]='isMultipleAllowed'></easy-file-uploader>

fileToUpload: Is an output emitter that emits all the files uploaded.It emits multiple, if isMultipleAllowed was set to true.

maxFileSize,maxFileSizeType: To restrict the file size of upload send these two params.These two work in combination.So these two are needed.

supportedFilesTypes: supported file types to upload.Should be passed as an array of string.

isMultipleAllowed: Make it true if the multi file select is needed.

Examples for each Input Param:

maxFileSize: 1
maxFileSizeType: "MB"
maxNumberOfFiles: 9
supportedFilesTypes: [".doc", ".docx"]
isMultipleAllowed: true

Notes: FileSizeTypes supported are: ['bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB']
Pass any one among the types mentioned above.

# EasyFileUploaderComponent

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 10.1.3.

## Code scaffolding

Run `ng generate component component-name --project easy-file-uploader` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project easy-file-uploader`.

> Note: Don't forget to add `--project easy-file-uploader` or else it will be added to the default project in your `angular.json` file.

## Build

Run `ng build easy-file-uploader` to build the project. The build artifacts will be stored in the `dist/` directory.

## Publishing

After building your library with `ng build easy-file-uploader`, go to the dist folder `cd dist/easy-file-uploader` and run `npm publish`.

## Running unit tests

Run `ng test easy-file-uploader` to execute the unit tests via [Karma](https://karma-runner.github.io).

## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).

---
_Source: https://npm.io/package/easy-file-uploader · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
