Hot answers tagged

4 votes

validating form before uploading files

Separation of concerns It's best when a function has a single responsibility. At a glance, and by its name, uploadcontrolhasError looks like a validator function, ...
user avatar
  • 107k
2 votes
Accepted

validating form before uploading files

You asked: How I could possibly improve the code quality? first things: use camelCase for function names (or else kabob_case) to separate words for readability. It is also recommended by numerous ...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible