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

[upload] nzCustomRequest does not update fileList with the uploaded file's URL #1209

Closed
murraybauer opened this issue Mar 24, 2018 · 4 comments
Labels

Comments

@murraybauer
Copy link

Version

0.7.0-beta.1

Environment

0.7.0-beta.1

Reproduction link

https://stackblitz.com/edit/ng-zorro-antd-setup-dpwsmc?file=app%2Fapp.component.ts

Steps to reproduce

Upload a file, which appends it to the existing list of files

What is expected?

Should be able to download the newly uploaded file - but as URL not set.

What is actually happening?

URL is set, but UI not updated.

image

It looks like a bug in that the fileList array does not get updated in the onSuccess callback

Other?

@vthinkxie
Copy link
Member

@cipchk

@cipchk
Copy link
Member

cipchk commented Apr 12, 2018

This is not bug, use onSuccess just for notify done status, you can change themeUrl via fileList property, pls look at this demo.

BTW: the progress bar can't be render, because of ngModel was changed to nzPercent in nz-progress component, i will fix this in next version.

@murraybauer
Copy link
Author

@cipchk thank you!

@lock
Copy link

lock bot commented Apr 18, 2019

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators Apr 18, 2019
hsuanxyz pushed a commit to hsuanxyz/ng-zorro-antd that referenced this issue Aug 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants