Fix uploadError validation rule to work with OS Win. Here the error is string, not integer.
Merge pull request #2822 from dereuromark/master-validation

Fix uploadError validation rule