Added support for chunked uploads. #2