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

sendDataOnCreate throws an error if file is smaller than chunkSize #759

Closed
maxsalven opened this issue Oct 13, 2024 · 2 comments
Closed
Labels
bug Something isn't working in-progress no-stale

Comments

@maxsalven
Copy link

Version 1.8.3, Google Chrome

If I use TusUploady with sendDataOnCreate, if the file I'm uploading is smaller than the chunkSize prop, then I get an error in the console and the batch never finishes.

@rpldy_tus-uploady.js?v=84958b3e:122 Uncaught (in promise) ChunkedSendError: start byte 16294884 is invalid. File size: 16294884
Screenshot 2024-10-13 at 18 02 01

It works fine with sendDataOnCreate disabled, or if the file is bigger than the chunk size.

Note the upload actually does complete successfully, but Uploady doesn't reflect that.

@yoavniran yoavniran added the bug Something isn't working label Oct 31, 2024
@yoavniran
Copy link
Collaborator

thanks for reporting @maxsalven
definitely sounds like a bug. Will try and fix soon

@yoavniran yoavniran added in-progress bug Something isn't working and removed bug Something isn't working labels Nov 3, 2024
@yoavniran
Copy link
Collaborator

@maxsalven just published 1.9.0-rc.1 with a fix for this issue.
If you can test it and let me know that it works, it'll be great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working in-progress no-stale
Projects
None yet
Development

No branches or pull requests

2 participants