Added chunked upload functionality.