Handle chunked uploads

Nothing uses CONTENT_LENGTH, it could be removed, might be best to leave it though?