Ngx-uploader : Angular2 File Uploader

Ngx-uploader

The ngx-uploader component provides a handy client-side drag’n’drop file upload experience for Angular 2 applications.

Got a Question or Problem?

Do not open issues for general support questions as we want to keep GitHub issues for bug reports and feature requests. You’ve got much better chances of getting your question answered on Stack Overflow where the questions should be tagged with tag ngx-uploader.

Upload Restrictions

With version 4.2.1 we’ve introduced restrictions for Content-Types. To not break the behaviour of previous releases, there are no restrictions by default at all.

Look at app-home.component.ts for an example of Content-Type restriction.

If you want to toast a message for the rejected file, add this to your onUploadOutput method.

onUploadOutput(output: UploadOutput): void {
....
} else if (output.type === 'rejected' && typeof output.file !== 'undefined') {
  // console.log(output.file.name + ' rejected');
}
...

0 Comments

Curated for You

Popular

Top Contributors more

Latest blog