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

Big files upload error with iOS #316

Closed
kukhariev opened this issue Sep 9, 2021 · 3 comments · Fixed by #431
Closed

Big files upload error with iOS #316

kukhariev opened this issue Sep 9, 2021 · 3 comments · Fixed by #431

Comments

@kukhariev
Copy link
Owner

Chocobozzz/PeerTube#4382
There is a issue with File API on these devices. The file stops being read after 60 seconds.

protected getChunk(): { start: number; end: number; body: Blob } {
this.chunkSize =
this.options.chunkSize === 0 ? this.size : this.options.chunkSize || DynamicChunk.size;
const start = this.offset || 0;
const end = Math.min(start + this.chunkSize, this.size);
const body = this.file.slice(this.offset, end);
return { start, end, body };
}

@Chocobozzz
Copy link

Thanks, I spent some hours yesterday on this issue but I don't really know how to fix this. iOS bug?

@kukhariev
Copy link
Owner Author

@kukhariev
Copy link
Owner Author

Although this error no longer appears on iOS versions 15.3 and above, there are still many devices running iOS 14 and older?

kukhariev added a commit that referenced this issue May 13, 2023
kukhariev added a commit that referenced this issue May 14, 2023
kukhariev added a commit that referenced this issue May 15, 2023
kukhariev added a commit that referenced this issue May 15, 2023
kukhariev added a commit that referenced this issue May 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants