WIP: Adding detection of aborted uploads for chunked uploads

Fixes #4546