-
Notifications
You must be signed in to change notification settings - Fork 62
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
Edit Entry doesn't respect File Upload's Maximum Number of Files setting #2086
Comments
@omarkasem, please work on this. |
@rafaehlers Please share any related snippets. |
Not exactly related, but deal with files uploaded on the edit entry page:
|
- This solves #2086 - The edit entry validation for max files works but after the user clicks edit entry. - The issue here is the files are uploaded to the uploads folder before they are validated - Gravity forms already has a good ajax validation for this part but we have a filter that removes that validation in GravityView `add_filter( 'gform_plupload_settings', array( $this, 'modify_fileupload_settings' ), 10, 3 );` - It says that it was added because our custom validation already handles that so we don't have a conflict ( I tried to find that conflict but couldn't) - So we can leave it as it is and we would have ajax validation (gf validation) and also a custom validation after the user clicks update (Our validation) - Or we can keep the filter that removes gf validation and build our own.
Reopening because while we made some advances here, it's still not good enough. Here's a new video explaining what's going on: https://www.loom.com/share/9956641a40334cd4b340a5cfcf8561de We need to:
Correcting these two items above will prevent the bug shown in the video. |
Customer notified ✅ |
I was able to upload more files than what was set in Gravity Forms:
Bonus: When working on this bug, see if this can also be fixed in the same attempt: #1002
The text was updated successfully, but these errors were encountered: