Carlos Cifuentes
AngularJS library migration · file uploads

Migrating ng-file-upload to modern Angular

ng-file-upload provided the ngf-select and ngf-drop directives plus an Upload service with progress and validation.

What replaces it

OptionWhen to choose it
Native input + HttpClientEnough for most cases: reportProgress gives upload progress events.
ngx-file-dropWhen you need a drag-and-drop zone; check its release activity before adopting it.
Uppy or tus clientFor resumable or very large uploads.

How to migrate it

  1. List the validations in use (size, type, dimensions) and move them to a validator function.
  2. Build one upload component with progress, cancel and error states.
  3. Send the file with FormData through HttpClient with reportProgress and observe events.

Watch out. Check how the backend expects the multipart field names. ng-file-upload had its own defaults, and a mismatch only shows up as a failed upload.

Other libraries

Planning a migration or a micro-frontend platform?

In a 20-minute call you describe your situation and I tell you how I'd approach it. If it isn't worth doing yet, I'll say so.

Message me on LinkedIn