Added chunking for the new uploading.