Gathering detailed insights and metrics for ng2-file-upload
Gathering detailed insights and metrics for ng2-file-upload
Gathering detailed insights and metrics for ng2-file-upload
Gathering detailed insights and metrics for ng2-file-upload
angular-file
Easy to use Angular directives for user file selections
@swimlane/ng2-file-upload
This is a fork of https://github.com/valor-software/ng2-file-upload that is compatible with Ivy and angular 9. It is not under maintenance, so please do not submit pull requests.
ng2-uploader
Angular2 File Uploader
@familygw/ng2-file-upload
Angular file uploader
Easy to use Angular components for files upload
npm install ng2-file-upload
Typescript
Module System
Node Version
NPM Version
96.1
Supply Chain
31.4
Quality
83.7
Maintenance
100
Vulnerability
100
License
TypeScript (59.66%)
CSS (27.06%)
HTML (9.62%)
JavaScript (3.65%)
Total Downloads
27,629,862
Last Day
17,907
Last Week
94,382
Last Month
404,803
Last Year
4,604,769
MIT License
1,912 Stars
299 Commits
661 Forks
73 Watchers
6 Branches
44 Contributors
Updated on May 03, 2025
Minified
Minified + Gzipped
Latest Version
8.0.0
Package Id
ng2-file-upload@8.0.0
Unpacked Size
102.21 kB
Size
20.95 kB
File Count
12
NPM Version
10.8.2
Node Version
20.18.1
Published on
Jan 15, 2025
Cumulative downloads
Total Downloads
Last Day
-9.1%
17,907
Compared to previous day
Last Week
-4.5%
94,382
Compared to previous week
Last Month
6.8%
404,803
Compared to previous month
Last Year
5.3%
4,604,769
Compared to previous year
1
2
Easy to use Angular2 directives for files upload (demo)
npm i ng2-file-upload
Alternatively, you can download it in a ZIP file.
Currently ng2-file-upload
contains two directives: ng2-file-select
and ng2-file-drop
. ng2-file-select
is used for 'file-input' field of form and
ng2-file-drop
is used for area that will be used for dropping of file or files.
More information regarding using of ng2-file-upload is located in demo and demo sources.
Install as shown in the above section.
Import FileUploadModule
into the module that declares the component using ng2-file-upload:
import { FileUploadModule } from 'ng2-file-upload';
[imports]
under @NgModule
:imports: [ ... FileUploadModule, ... ]
FileUploader
into the component:import { FileUploader } from 'ng2-file-upload';
const URL = 'path_to_api';
public uploader:FileUploader = new FileUploader({url: URL});
ng2FileSelect
uploader
- (FileUploader
) - uploader object. See using in demoonFileSelected
- fires when files are selected and added to the uploader queueng2FileDrop
uploader
- (FileUploader
) - uploader object. See using in demoParameters supported by this object:
url
- URL of File Uploader's routeauthToken
- Auth token that will be applied as 'Authorization' header during file send.disableMultipart
- If 'true', disable using a multipart form for file upload and instead stream the file. Some APIs (e.g. Amazon S3) may expect the file to be streamed rather than sent via a form. Defaults to false.itemAlias
- item alias (form name redefinition)formatDataFunction
- Function to modify the request body. 'DisableMultipart' must be 'true' for this function to be called.formatDataFunctionIsAsync
- Informs if the function sent in 'formatDataFunction' is asynchronous. Defaults to false.parametersBeforeFiles
- States if additional parameters should be appended before or after the file. Defaults to false.fileOver
- it fires during 'over' and 'out' events for Drop Area; returns boolean
: true
if file is over Drop Area, false
in case of out.
See using in ts demo and
html demoonFileDrop
- it fires after a file has been dropped on a Drop Area; you can pass in $event
to get the list of files that were dropped. i.e. (onFileDrop)="dropped($event)"
Please follow these guidelines when reporting bugs and feature requests:
Thanks for understanding!
The MIT License (see the LICENSE file for the full text)
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
Found 4/9 approved changesets -- score normalized to 4
Reason
dependency not pinned by hash detected -- score normalized to 1
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
24 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-05-12
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More