Gathering detailed insights and metrics for @iplab/ngx-file-upload
Gathering detailed insights and metrics for @iplab/ngx-file-upload
Gathering detailed insights and metrics for @iplab/ngx-file-upload
Gathering detailed insights and metrics for @iplab/ngx-file-upload
npm install @iplab/ngx-file-upload
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
87 Stars
123 Commits
12 Forks
5 Watching
11 Branches
2 Contributors
Updated on 28 Nov 2024
Minified
Minified + Gzipped
TypeScript (68.29%)
HTML (26.2%)
SCSS (3.96%)
JavaScript (1.17%)
CSS (0.38%)
Cumulative downloads
Total Downloads
Last day
15%
1,373
Compared to previous day
Last week
3.9%
6,607
Compared to previous week
Last month
5.3%
27,675
Compared to previous month
Last year
10%
312,472
Compared to previous year
1
5
Angular module used for file upload.
more detailed instructions can be found here
1with older version of Angular use @iplab/ngx-file-upload@version < 4.0.0
1npm install @iplab/ngx-file-upload
Use the following snippet inside your app module:
1import { ReactiveFormsModule, FormsModule } from '@angular/forms'; 2import { FileUploadModule } from '@iplab/ngx-file-upload'; 3import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; 4... 5... 6 7@NgModule({ 8 imports: [ 9 BrowserModule, 10 ReactiveFormsModule, 11 FormsModule, 12 FileUploadModule, 13 BrowserAnimationsModule // or use NoopAnimationsModule 14 ], 15 bootstrap: [AppComponent] 16}) 17export class AppModule {}
Use the following snippet inside your component:
1import { FileUploadControl, FileUploadValidators } from '@iplab/ngx-file-upload'; 2 3 4@Component({ 5 selector: `app-root`, 6 template: `<file-upload [control]="fileUploadControl"></file-upload>` 7}) 8export class AppComponent { 9 10 public fileUploadControl = new FileUploadControl(null, FileUploadValidators.filesLimit(2)); 11 12 constructor() { 13 } 14}
With angular reactive form you can use the following snippet:
1import { FileUploadValidators } from '@iplab/ngx-file-upload'; 2 3 4@Component({ 5 selector: `app-root`, 6 template: ` 7 <form [formGroup]="demoForm"> 8 <file-upload formControlName="files"></file-upload> 9 </form>` 10}) 11export class AppComponent { 12 13 private filesControl = new FormControl(null, FileUploadValidators.filesLimit(2)); 14 15 public demoForm = new FormGroup({ 16 files: this.filesControl 17 }); 18 19 constructor() { 20 } 21}
With angular template driven form you can use the following snippet:
1@Component({ 2 selector: `app-root`, 3 template: ` 4 <form #demoForm="ngForm"> 5 <file-upload [(ngModel)]="uploadedFiles" name="files" fileslimit="2"></file-upload> 6 </form>` 7}) 8export class AppComponent { 9 10 public uploadedFiles: Array<File> = []; 11}
This project was generated with Angular CLI version 16.0.0.
Angular CLI must be installed before building @iplab/ngx-file-upload project.
1npm install -g @angular/cli
1git clone https://github.com/pIvan/file-upload.git 2cd file-upload/ 3npm install 4npm run start
Open "http://localhost:4200" in browser
We use SemVer for versioning. For the versions available, see the link to tags on this repository.
This project was generated with Angular CLI version 16.0.0.
Angular CLI must be installed before testing @iplab/ngx-file-upload project.
1npm install -g @angular/cli
1git clone https://github.com/pIvan/file-upload.git 2cd file-upload/ 3npm install 4npm run test
Want to file a bug, contribute some code, or improve documentation? Excellent! Read up on our contributing guide and then check out one of our issues.
@iplab/ngx-file-upload is freely distributable under the terms of the MIT license.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
0 commit(s) and 2 issue activity found in the last 90 days -- score normalized to 1
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2024-11-18
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