Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
88 changes: 44 additions & 44 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Angular file uploader is an Angular 2/4/5/6/7/8/9/10 + file uploader module with
<https://kzrfaisal.github.io/#/afu>
### Install
```
npm i angular-file-uploader
npm i ngx-file-uploader
```

### Raising funds
Expand All @@ -18,24 +18,24 @@ Support this package if it really helped you, send your support at [Patreon](htt
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
```
in your index.html.
- Import AngularFileUploaderModule inside your app.module.ts
- Import NgxFileUploaderModule inside your app.module.ts
```javascript
import { AngularFileUploaderModule } from "angular-file-uploader";
import { NgxFileUploaderModule } from "ngx-file-uploader";
```
```javascript
@NgModule({
imports: [
...,
AngularFileUploaderModule,
NgxFileUploaderModule,
...
]
})
```
##### Example-1 ( with minimal configuration )
```html
<angular-file-uploader
<ngx-file-uploader
[config]="afuConfig">
</angular-file-uploader>
</ngx-file-uploader>
```
```javascript
afuConfig = {
Expand All @@ -46,11 +46,11 @@ Support this package if it really helped you, send your support at [Patreon](htt
```
##### Example-2 ( with all available configuration )
```html
<angular-file-uploader
<ngx-file-uploader
[config]="afuConfig"
[resetUpload]=resetVar
(ApiResponse)="DocUpload($event)">
</angular-file-uploader>
</ngx-file-uploader>
```
```javascript
afuConfig = {
Expand Down Expand Up @@ -116,11 +116,11 @@ You have seen that by using 'resetUpload' property, you can reset the module eas

###### Example-3
```html
<angular-file-uploader #fileUpload1
<ngx-file-uploader #fileUpload1
[config]="afuConfig"
[resetUpload]=resetVar
(ApiResponse)="DocUpload($event)">
</angular-file-uploader>
</ngx-file-uploader>
```
- Assign one local reference variable (here 'fileUpload1') to the component.
- Now use this local reference variable in your xyz.component.ts file.
Expand All @@ -131,7 +131,7 @@ You have seen that by using 'resetUpload' property, you can reset the module eas
- Remember to import ViewChild and AngularFileUploaderComponent properly in your component.
```javascript
import { ViewChild } from '@angular/core';
import { AngularFileUploaderComponent } from "angular-file-uploader";
import { AngularFileUploaderComponent } from "ngx-file-uploader";
```
- That's it.....all done, now just use
```javascript
Expand Down Expand Up @@ -162,15 +162,15 @@ You have seen that by using 'resetUpload' property, you can reset the module eas
- More themes.
- More customization options.
---
#### For Versions < 6.x : [Click Here !](https://github.com/kzrfaisal/angular-file-uploader#for-versions--6x-)
#### For Versions < 6.x : [Click Here !](https://github.com/kzrfaisal/ngx-file-uploader#for-versions--6x-)
---
---
#### For Versions < 5.x : [Click Here !](https://github.com/kzrfaisal/angular-file-uploader#for-versions--5x-)
#### For Versions < 5.x : [Click Here !](https://github.com/kzrfaisal/ngx-file-uploader#for-versions--5x-)
---
#### For Versions =< 4.0.12 :
- Replace AngularFileUploaderModule and AngularFileUploaderComponent with FileUploadModule and FileUploadComponent respectively.
- Replace NgxFileUploaderModule and AngularFileUploaderComponent with FileUploadModule and FileUploadComponent respectively.
---
#### For Versions < 2.x : [Click Here !](https://github.com/kzrfaisal/angular-file-uploader#for-versions--2x-)
#### For Versions < 2.x : [Click Here !](https://github.com/kzrfaisal/ngx-file-uploader#for-versions--2x-)
---
---
#### For Versions < 6.x :
Expand All @@ -180,7 +180,7 @@ Angular file uploader is an Angular 2/4/5/6 file uploader module with Real-Time
<https://kzrfaisal.github.io/#/afu>
### Install
```
npm i angular-file-uploader
npm i ngx-file-uploader
```
### Usage
- Bootstrap.min.css is required.
Expand All @@ -189,24 +189,24 @@ npm i angular-file-uploader
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
```
in your index.html.
- Import AngularFileUploaderModule inside your app.module.ts
- Import NgxFileUploaderModule inside your app.module.ts
```javascript
import { AngularFileUploaderModule } from "angular-file-uploader";
import { NgxFileUploaderModule } from "ngx-file-uploader";
```
```javascript
@NgModule({
imports: [
...,
AngularFileUploaderModule,
NgxFileUploaderModule,
...
]
})
```
##### Example-1 ( with minimal configuration )
```html
<angular-file-uploader
<ngx-file-uploader
[config]="afuConfig">
</angular-file-uploader>
</ngx-file-uploader>
```
```javascript
afuConfig = {
Expand All @@ -217,11 +217,11 @@ npm i angular-file-uploader
```
##### Example-2 ( with all available configuration )
```html
<angular-file-uploader
<ngx-file-uploader
[config]="afuConfig"
[resetUpload]=resetVar
(ApiResponse)="DocUpload($event)">
</angular-file-uploader>
</ngx-file-uploader>
```
```javascript
afuConfig = {
Expand Down Expand Up @@ -279,11 +279,11 @@ You have seen that by using 'resetUpload' property, you can reset the module eas

###### Example-3
```html
<angular-file-uploader #fileUpload1
<ngx-file-uploader #fileUpload1
[config]="afuConfig"
[resetUpload]=resetVar
(ApiResponse)="DocUpload($event)">
</angular-file-uploader>
</ngx-file-uploader>
```
- Assign one local reference variable (here 'fileUpload1') to the component.
- Now use this local reference variable in your xyz.component.ts file.
Expand All @@ -294,7 +294,7 @@ You have seen that by using 'resetUpload' property, you can reset the module eas
- Remember to import ViewChild and AngularFileUploaderComponent properly in your component.
```javascript
import { ViewChild } from '@angular/core';
import { AngularFileUploaderComponent } from "angular-file-uploader";
import { AngularFileUploaderComponent } from "ngx-file-uploader";
```
- That's it.....all done, now just use
```javascript
Expand Down Expand Up @@ -333,7 +333,7 @@ Angular file uploader is an Angular 2/4/5/6 file uploader module with Real-Time
<https://kzrfaisal.github.io/#/afu>
### Install
```
npm i angular-file-uploader
npm i ngx-file-uploader
```
### Usage
- Bootstrap.min.css is required.
Expand All @@ -342,24 +342,24 @@ npm i angular-file-uploader
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
```
in your index.html.
- Import AngularFileUploaderModule inside your app.module.ts
- Import NgxFileUploaderModule inside your app.module.ts
```javascript
import { AngularFileUploaderModule } from "angular-file-uploader";
import { NgxFileUploaderModule } from "ngx-file-uploader";
```
```javascript
@NgModule({
imports: [
...,
AngularFileUploaderModule,
NgxFileUploaderModule,
...
]
})
```
##### Example-1 ( with minimal configuration )
```html
<angular-file-uploader
<ngx-file-uploader
[config]="afuConfig">
</angular-file-uploader>
</ngx-file-uploader>
```
```javascript
afuConfig = {
Expand All @@ -370,11 +370,11 @@ npm i angular-file-uploader
```
##### Example-2 ( with all available configuration )
```html
<angular-file-uploader
<ngx-file-uploader
[config]="afuConfig"
[resetUpload]=resetVar
(ApiResponse)="DocUpload($event)">
</angular-file-uploader>
</ngx-file-uploader>
```
```javascript
afuConfig = {
Expand Down Expand Up @@ -423,11 +423,11 @@ You have seen that by using 'resetUpload' property, you can reset the module eas

###### Example-3
```html
<angular-file-uploader #fileUpload1
<ngx-file-uploader #fileUpload1
[config]="afuConfig"
[resetUpload]=resetVar
(ApiResponse)="DocUpload($event)">
</angular-file-uploader>
</ngx-file-uploader>
```
- Assign one local reference variable (here 'fileUpload1') to the component.
- Now use this local reference variable in your xyz.component.ts file.
Expand All @@ -438,7 +438,7 @@ You have seen that by using 'resetUpload' property, you can reset the module eas
- Remember to import ViewChild and AngularFileUploaderComponent properly in your component.
```javascript
import { ViewChild } from '@angular/core';
import { AngularFileUploaderComponent } from "angular-file-uploader";
import { AngularFileUploaderComponent } from "ngx-file-uploader";
```
- That's it.....all done, now just use
```javascript
Expand Down Expand Up @@ -474,21 +474,21 @@ You have seen that by using 'resetUpload' property, you can reset the module eas
#### For Versions < 2.x :
##### Example-1
```html
<angular-file-uploader
<ngx-file-uploader
[uploadAPI]="'https://example-file-upload-api'">
</angular-file-uploader>
</ngx-file-uploader>
```
##### Example-2
```html
<angular-file-uploader
<ngx-file-uploader
[multiple]="true"
[formatsAllowed]="'.jpg,.png'"
[maxSize]="5"
[uploadAPI]="'https://example-file-upload-api'"
[resetUpload]=resetVar
(ApiResponse)="DocUpload($event)"
[hideProgressBar]="false">
</angular-file-uploader>
</ngx-file-uploader>
```

| **Properties** | **Description** | **Default Value** |
Expand All @@ -505,15 +505,15 @@ You have seen that by using 'resetUpload' property, you can reset the module eas

##### Example-3
```html
<angular-file-uploader #fileUpload1
<ngx-file-uploader #fileUpload1
[multiple]="true"
[formatsAllowed]="'.jpg,.png'"
[maxSize]="5"
[uploadAPI]="'https://example-file-upload-api'"
[resetUpload]=resetVar
(ApiResponse)="DocUpload($event)"
[hideProgressBar]="false">
</angular-file-uploader>
</ngx-file-uploader>
```
- Assign one local reference variable (here 'fileUpload1') to the component.
- Now use this local reference variable in your xyz.component.ts file.
Expand All @@ -524,7 +524,7 @@ You have seen that by using 'resetUpload' property, you can reset the module eas
- Remember to import ViewChild and FileUploadComponent properly in your component.
```javascript
import { ViewChild } from '@angular/core';
import { FileUploadComponent } from "angular-file-uploader";
import { FileUploadComponent } from "ngx-file-uploader";
```
- That's it.....all done, now just use
```javascript
Expand Down
24 changes: 12 additions & 12 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,38 +3,38 @@
"version": 1,
"newProjectRoot": "projects",
"projects": {
"angular-file-uploader": {
"ngx-file-uploader": {
"projectType": "library",
"root": "projects/angular-file-uploader",
"sourceRoot": "projects/angular-file-uploader/src",
"root": "projects/ngx-file-uploader",
"sourceRoot": "projects/ngx-file-uploader/src",
"prefix": "lib",
"architect": {
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
"options": {
"tsConfig": "projects/angular-file-uploader/tsconfig.lib.json",
"project": "projects/angular-file-uploader/ng-package.json"
"tsConfig": "projects/ngx-file-uploader/tsconfig.lib.json",
"project": "projects/ngx-file-uploader/ng-package.json"
},
"configurations": {
"production": {
"tsConfig": "projects/angular-file-uploader/tsconfig.lib.prod.json"
"tsConfig": "projects/ngx-file-uploader/tsconfig.lib.prod.json"
}
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "projects/angular-file-uploader/src/test.ts",
"tsConfig": "projects/angular-file-uploader/tsconfig.spec.json",
"karmaConfig": "projects/angular-file-uploader/karma.conf.js"
"main": "projects/ngx-file-uploader/src/test.ts",
"tsConfig": "projects/ngx-file-uploader/tsconfig.spec.json",
"karmaConfig": "projects/ngx-file-uploader/karma.conf.js"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"projects/angular-file-uploader/tsconfig.lib.json",
"projects/angular-file-uploader/tsconfig.spec.json"
"projects/ngx-file-uploader/tsconfig.lib.json",
"projects/ngx-file-uploader/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
Expand Down Expand Up @@ -185,5 +185,5 @@
}
}
}},
"defaultProject": "angular-file-uploader"
"defaultProject": "ngx-file-uploader"
}
12 changes: 2 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading