Skip to main content

Posts

Featured

RxJs File Chunking & Uploading Service

Recently I was presented with the challenge of writing some file upload components for a single page app. There are lots of existing upload libraries out there already, but due to an existing server side API that could not be changed I had trouble finding one that could do the job. The existing document processing service we were working against required the following:

The user had to be able to select as many files as they wanted for uploadThe file had to be split into 1MB chunksA CRC had to be calculated for each chunk and the overall fileEach chunk for a given file had to be uploaded sequentially, but multiple files could upload concurrently
On top of this we wanted to limit the number of chunks that could be in progress at any one time in order to prevent the maximum number of concurrent connections to one domain being maxed out. We wanted the user to be able to continue to use the app while uploads were in progress, and this becomes impossible if all the http connections are tied …

Latest Posts

An NgRx based State Machine for Angular Components - Part 4

An NgRx based State Machine for Angular Components - Part 3

An NgRx based State Machine for Angular Components - Part 2

RxJs forms in React - Part 2

An NgRx based State Machine for Angular Components

RxJs forms in React - Part 1

Gradual migration of .net mvc application to Angular 2 - Part 2

Gradual migration of .net mvc application to Angular 2 - Part 1

Custom scrollbar for variable height flex items