Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR while uploading or videos corruption issue #52

Open
FirdousNath opened this issue Apr 20, 2018 · 2 comments
Open

ERROR while uploading or videos corruption issue #52

FirdousNath opened this issue Apr 20, 2018 · 2 comments

Comments

@FirdousNath
Copy link

I found some abnormal behaviour sometimes while uploading of videos, say I need to upload 140 MB of data. So below event is called after uploading is finished
upload.on('uploaded', function (details) { console.log(details); });

But when I checked the actual file its was of 120MB where my max part size was 20MB, So my wild guess is that maybe a single part is not uploaded succesfully
upload.on('part', function (details) { console.log(details); });

Do we have similar method called 'part-error' so that we can handle such situation ?

@FirdousNath FirdousNath changed the title ERROR while uploading ERROR while uploading or videos corruption issue Apr 20, 2018
@vinilana
Copy link

Hi @FirdousNath are you using the zlib as the documentation suggest? Maybe the difference between the file sizes is about this, because zlib reduce the file size to upload. If are you using the main repo example try to change this line read.pipe(compress).pipe(upload); to this read.pipe(upload);
You will see that the file will have the same size as you see in you computer. If it solves your problem then you could remove the compress const and the zlib from your project. Also, they offer a method to see the upload status details part by part, if you use that upload.on('part', function (details) { console.log(details) }) you will be able to see in real time on your console the status of upload and detect if something doesn't work well.

Hope this helps 👍

@FirdousNath
Copy link
Author

FirdousNath commented Jul 17, 2018

I am using same as you stated above @VINICIUS97
this is exact code I am using this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants