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

Failed file upload cannot be tried again #6

Open
sido420 opened this issue Jan 2, 2021 · 2 comments
Open

Failed file upload cannot be tried again #6

sido420 opened this issue Jan 2, 2021 · 2 comments

Comments

@sido420
Copy link

sido420 commented Jan 2, 2021

Which platform(s) does your issue occur on?

Android

Please, provide the following version numbers that your issue occurs with:

7.0.10

Please, tell us how to recreate the issue in as much detail as possible.

I think the issue is inherent to this plugin so however you want to use the plugin.

Is there any code involved?

Yes. Use the sample code for this plugin but make sure a 400 error is returned from Tus server on the first attempt to file upload. Try uploading the same file again and nothing happens.
I dont see anything in server logs on second and subsequent attempts. Is there a way to clear any local caches before the next attempt?

@sido420
Copy link
Author

sido420 commented Jan 2, 2021

Not sure if it will make a difference but I am getting file access using code below:

  const fileSystemModule = require("tns-core-modules/file-system");
      const file = fileSystemModule.File.fromPath(
        fileSystemModule.path.normalize(
          fileSystemModule.knownFolders.currentApp().path + "/bundle.js"
        )
      );

@tralves
Copy link
Contributor

tralves commented Jan 7, 2021

Are you creating a new new tus.Upload?

Can you show more of your upload code?

Also, you can try calling upload.tusUpload.abort(); on error (I am not doing this myself. just an idea)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants