make sure we reset the state when starting an upload in the javascript
make sure we reset the state when starting an upload in the javascript

deanhiller/databus,deanhiller/databus,deanhiller/databus,deanhiller/databus,deanhiller/databus,deanhiller/databus,deanhiller/databus