In the previous episode, a larger amount of work was started to finally rework the high level API and flow of the uploader.js file.
While that episode handled the button click, there is still another area of the code to be encapsulated – the form upload progress.
In this episode, then, we'll look at what it takes to complete the encapsulation of the form, including the ability to create a single API around multiple workflow entry points: both the button click and upload progress events.
At the end of this episode, the code we have in place for the uploader will be significantly different than what was there originally. And while the code could be cleaned up further – it could literally go on forever, constantly tweaking and changing – this new state of the code is far easier to read, understand and maintain than when we started this series.