Use streaming IO to upload file