Only upload when files array is non-empty in 'auto' mode #1548

Merged
merged 1 commit into from Dec 12, 2016

Projects

None yet

2 participants

@arimus
Contributor
arimus commented Dec 9, 2016

In auto mode, if a file doesn't pass validation, a POST is still being done with an empty files list. The test does a boolean check on the files array instead of checking the length. This change calls the hasFiles() function which performs the proper check.

@cagataycivici cagataycivici self-assigned this Dec 12, 2016
@cagataycivici cagataycivici added this to the 1.1 milestone Dec 12, 2016
@cagataycivici cagataycivici changed the title from only upload when we have a non-empty files array in 'auto' mode to Only upload when files array is non-empty in 'auto' mode Dec 12, 2016
@cagataycivici cagataycivici merged commit 5f29367 into primefaces:master Dec 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment