react-native-fs icon indicating copy to clipboard operation
react-native-fs copied to clipboard

Getting contentLength -1 in both begin and progress callbacks

Open AliRehman7141 opened this issue 3 years ago • 1 comments

In begin callback getting this response

{"contentLength": -1, "headers": {"Accept-Ranges": "bytes", "Connection": "Keep-Alive", "Content-Encoding": "gzip",
"Content-Type": "audio/mp4", "Date": "Thu, 23 Sep 2021 13:30:29 GMT", "Keep-Alive": "timeout=5, max=100", "Last
Modified": "Tue, 14 Sep 2021 07:51:37 GMT", "Server": "Apache", "Transfer-Encoding": "Identity", "Vary": "Accept
Encoding,User-Agent"}, "jobId": 1, "statusCode": 200}

and in progress callback getting

{"bytesWritten": 4762239, "contentLength": -1, "jobId": 1}

Now, I can't calculate the progress, what's going on here? why I'm getting contentLength is -1

AliRehman7141 avatar Sep 23 '21 13:09 AliRehman7141

same problem

maksim-romanov avatar Oct 19 '23 16:10 maksim-romanov