Skip to content

Behavior of .slice() is incorrect when using blobs backed by a file on the disk #128

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

Closed
monster860 opened this issue Dec 23, 2021 · 0 comments · Fixed by #132
Closed

Behavior of .slice() is incorrect when using blobs backed by a file on the disk #128

monster860 opened this issue Dec 23, 2021 · 0 comments · Fixed by #132

Comments

@monster860
Copy link

When using something like the fileFrom(), the behavior is incorrect. .slice() breaks if used more than once.

blob.slice(10, 40).slice(10, 20) should be equivalent to blob.slice(20, 30), and it is if you use a blob that's backed by an arraybuffer, however when using a blob backed by a file on the disk, it becomes equivalent to blob.slice(10, 20) instead.

@jimmywarting jimmywarting linked a pull request Jan 18, 2022 that will close this issue
1 task
@jimmywarting jimmywarting mentioned this issue Jan 18, 2022
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant