Description
ng2-file-upload is a set of Angular directives for uploading files. It provides two directives: ng2-file-select, for a file input in a form, and ng2-file-drop, for an area where files can be dropped. You install it with npm, and you import the directives into a standalone component or the FileUploadModule into an NgModule. The directives add files to an uploader as soon as they are selected or dropped, and the uploader tracks each item's progress through callbacks for events such as before upload, progress, success, error, cancel and complete. The README includes a compatibility table that matches each Angular major version to a version of the library, from Angular 22 with version 11 of the library back to Angular 2 with version 1. js need extra change detection, either by adding provideZoneChangeDetection() or by calling markForCheck or updating a signal from the callbacks. Requests are sent with credentials by default, so a server on another origin must allow those credentials. addToQueue. The project is open source and hosted on GitHub, with a demo and demo sources in the repository.…
Highlights
- ng2-file-select and ng2-file-drop directives
- Upload progress and callbacks per file
- Compatibility table for Angular versions
- Works with standalone components and NgModules
- Filters and queue control
Ratings & Reviews
No ratings yet
Be the first to rate ng2-file-upload.
People also visit
ng2-file-upload FAQ
What is ng2-file-upload?
A set of Angular directives for file selection and drag-and-drop uploads, with progress tracking.
Is it free?
Yes. It is open source and hosted on GitHub.
How do I install it?
Install the npm package ng2-file-upload, then import the directives into your component or the FileUploadModule.
Which Angular version do I need?
The compatibility table matches Angular versions to library versions, from Angular 22 with library version 11 down to older releases.
Does it work without zone.js?
Yes, with extra care. The README says to add provideZoneChangeDetection() or to call markForCheck from the upload callbacks.
Can I resize images before upload?
Yes. The README suggests handling the input's change event and calling uploader.addToQueue with the processed files.
What are the best ng2-file-upload alternatives?
Popular alternatives to ng2-file-upload include @georgipeltekov/ngx-file-drop, file-uploader and vue-upload-component. See all ng2-file-upload alternatives





















