Angular > 2 library for File Upload.
npm install aa-fileuploadThis library contains a fileupload control for TRIBE Angular 2+ application development.
Run npm run build to build the project. The build artifacts will be stored in the dist/ directory.
Run npm test to execute the unit tests via Karma.
aa-fileupload is available as an NPM package. To install aa-fileupload in your project directory run:
``typescript`
$ npm install aa-fileupload --save
After installtion you can import aa-fileupload in your angular 2+ project by adding the AaFileuploadModule to your Module declaration as followed:`typescript
import { AaFileuploadModule } from 'aa-fileupload';
@NgModule({
imports: [
AaFileuploadModule
],
})
export class Module { }
`
How to use the control
To use the this fileupload control in an angular 2+ project simply add a wizard component to the html template of your component, like this:
`html`
name="myfile[]" url="http://localhost:63135/api/values"
accept="image/*"
dragPanelWide="false"
styleClass="ui-fileupload"
maxFileSize="1000000">
$3
Possible
| Parameter name | Possible Values | Default Value |
| ----------------- | ----------------------------------------------------------------------------------------------------- | ------------- |
| [chooseLabel] | Any string | Choose |
| [styleClass] | Any available css classes as string | ui-fileupload |
| [maxFileSize] | File size in Number | - |
| [accept] | Mime type | - |
| [url] | file POST location | - |
| [allowDragAndDrop] | Boolean | false |
| [allowMultiple] | Boolean | false |
Please note, this library is still under active development!!!