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

Doubled image when uploading by clicking icon button #819

Closed
koxu1996 opened this issue Dec 24, 2016 · 3 comments
Closed

Doubled image when uploading by clicking icon button #819

koxu1996 opened this issue Dec 24, 2016 · 3 comments
Labels

Comments

@koxu1996
Copy link
Contributor

koxu1996 commented Dec 24, 2016

Reproducing issue

  1. Create fileinput with upload: $("#input-id").fileinput({'uploadUrl':'/event/upload-image2'});
  2. Select image:
  3. Upload by clicking icon beyond image preview:
  4. Image appear twice:

This issue is caused because of this commit 01482ac

@kartik-v
Copy link
Owner

kartik-v commented Dec 25, 2016

Cannot reproduce the issue.

Hope you have the correct version of the assets (JS/CSS) and you are not having caching issues loading outdated code? Also if you are writing your own javascript or third party plugins to tweak the plugin behavior - you may need to check your code.

You can cross check with demos page like this example to upload a file by clicking on the icons.

@koxu1996
Copy link
Contributor Author

koxu1996 commented Dec 25, 2016

I forgot to mention that server must return initialPreview with initialPreviewConfig. Check this fiddle

@kartik-v kartik-v added the bug label Dec 25, 2016
kartik-v added a commit that referenced this issue Dec 25, 2016
@stuartcusackie
Copy link

I am getting this problem today. Using version 4.3.6 (4.3.7 is not available on npm)

Many thanks for the package!

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