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

Required Validation 2 (Ajax) not working #1826

Open
chkuo2 opened this issue Nov 17, 2022 · 3 comments
Open

Required Validation 2 (Ajax) not working #1826

chkuo2 opened this issue Nov 17, 2022 · 3 comments

Comments

@chkuo2
Copy link

chkuo2 commented Nov 17, 2022

Use "Required Validation 2 (Ajax)" sample
https://plugins.krajee.com/file-count-validation-demo#required-ajax-2
init had file or remove init file and select file , but always show error message "No valid data available for upload.".

@kartik-v
Copy link
Owner

Can you explain what is your issue? It seems to work as intended. If you click upload without selecting a file it will throw no valid data found for upload.

@chkuo2
Copy link
Author

chkuo2 commented Dec 16, 2022

like this. https://imgur.com/xlXJ7qD
It had file and when i click upload, still show error.

@kartik-v
Copy link
Owner

kartik-v commented Dec 16, 2022

Yes as I mentioned that is expected behavior for upload - since you need to select some file from client to upload - without selecting a file if you press upload-- the plugin expects some valid data to upload and shows that message (this has nothing to do with the required function) -- to achieve your use case you may need a custom submit button where you can call the plugin's upload method only after user has selected a file (which you can trap via the input's change event).

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