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

MaxFileCount when showing IntialPreview of existing images #259

Closed
vkmel opened this issue Apr 23, 2015 · 2 comments
Closed

MaxFileCount when showing IntialPreview of existing images #259

vkmel opened this issue Apr 23, 2015 · 2 comments
Labels

Comments

@vkmel
Copy link

vkmel commented Apr 23, 2015

Hi,

I am using this widget in Yii2. When I use MaxFileCount=>3, I am able to upload 3 images and if there are more, then it is showing a proper error. However in my actionUpdate, when I display existing images in the current record, I can still browse and add 3 more images.

How do I go about solving this issue? Thanks Kartik.

@kartik-v
Copy link
Owner

You would need to handle this in your server validation and render the Html and js for the plugin accordingly for example if you have 3 images on server you should disable the file input and hide the upload button (showUpload = false).

@vkmel
Copy link
Author

vkmel commented Apr 23, 2015

Thanks. I did that and it worked.

kartik-v added a commit that referenced this issue Apr 24, 2015
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

2 participants