You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Question
When using FileReader, if onError occurs, the stream is not closed to allow resuming upload.
However, Upload() doesn't expose FileSource, so there doesn't seem to be a way of closing the stream with FileSource.close().
How can we close the stream on error?
Setup details
Runtime environment: React Native
Used tus-js-client version: tus-js-client@4.3.1
Used tus server software: Latest supabase tus server
Details
It seems the FileSource should be available so the stream / file handle can be closed on error.
Otherwise, if it never succeeds, the stream / file handle would be left open indefinitely.