Adding detection of aborted uploads for chunked uploads

Fixes #4546 


@ogoffart FYI - not tested yet