This will make it easy to display errors in the front-end when we use custom form with some validation (for example file size or virus checking).
I know that validation need to be in real form, but by this way errors can be shown to the user before submit. For security validation need to be doubled (On the main form and on the custom upload form) but will improve user experience.
For now I was not made any changes in the JavaScript to show the errors sent from the back-end. This can be made later.
This will make it easy to display errors in the front-end when we use custom form with some validation (for example file size or virus checking).
I know that validation need to be in real form, but by this way errors can be shown to the user before submit. For security validation need to be doubled (On the main form and on the custom upload form) but will improve user experience.
For now I was not made any changes in the JavaScript to show the errors sent from the back-end. This can be made later.