Add support for chunked uploading