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

Bug with Status bar #4532

Closed
2 tasks done
Hazem-Ben-Abdelhafidh opened this issue Jun 27, 2023 · 4 comments
Closed
2 tasks done

Bug with Status bar #4532

Hazem-Ben-Abdelhafidh opened this issue Jun 27, 2023 · 4 comments
Labels

Comments

@Hazem-Ben-Abdelhafidh
Copy link

Initial checklist

  • I understand this is a bug report and questions should be posted in the Community Forum
  • I searched issues and couldn’t find anything (or linked relevant results below)

Link to runnable example

No response

Steps to reproduce

the status bar was working completely fine but it started showing these NaN's from nowhere

Expected behavior

the status bar should shows the correct time that is left to finish the upload

Actual behavior

time left shown as NaNh NaNm

@Hazem-Ben-Abdelhafidh
Copy link
Author

could it be caused from the tus endpoint?

@Murderlon
Copy link
Member

Murderlon commented Jun 27, 2023

Hi, this is not actionable or reproducible. Please provide a reproducible example or we will have to close this.

Related and potentially fixed in #4525 or #4458 if you're on an older release.

@Murderlon
Copy link
Member

You can not define Uppy inside the component. Make sure to keep it out of it according to the docs: https://uppy.io/docs/react

@Murderlon Murderlon closed this as not planned Won't fix, can't repro, duplicate, stale Jul 3, 2023
@kartikaykanojia
Copy link

Facing same issue after updating from @uppy/dashboard: ^3.2.0, @uppy/core: ^3.0.4
Working fine when upload button is clicked after adding file.

But after setting hideUploadButton: false and calling upload() from 'file-added' event, it shows NaNh NaNm

this.uppy.on('file-added', (_file:any) => { this.uppy.upload(); });

Workaround is calling 'startUpload()' of statusbar.jsx/statusbar.js file.

` this.uppy.on('file-added', (_file:any) => {
const o = this.uppy.getPlugin("Dashboard:StatusBar") as StatusBar;

if(o){
	//@ts-ignore
	if(typeof o.startUpload() === 'function'){
		//@ts-ignore
		o.startUpload()
	}
 }
 this.uppy.upload();
 }); `

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

No branches or pull requests

3 participants