-
-
Notifications
You must be signed in to change notification settings - Fork 819
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
Failure to cancel file upload correctly #847
Comments
Sadly, there is no direct HTTP request abort available in the VFS at the moment. It should be fairly easy to implement though, at least for file uploads.
const aborter = new AbortController()
vfs.writefile({ /* */ }, file, {
abort: aborter
})
// In a dialog callback
(btn) => {
if (btn === 'cancel') {
aborter.abort()
}
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @andersevenrud
I have a problem.
If I click the cancel button while uploading the file, the file upload dialog closes but the upload process is not completely canceled and the file is finally uploaded.
The text was updated successfully, but these errors were encountered: