Hello,
I try to make a frontend form, which contains UploadField. I have problem with validation of this field. Validation message does not appear and it seems the whole form is refreshed (all filled values are erased).
Thank you for help.
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
Hello,
I try to make a frontend form, which contains UploadField. I have problem with validation of this field. Validation message does not appear and it seems the whole form is refreshed (all filled values are erased).
Thank you for help.
It is better to use FileField on front end forms, as UploadField is more of a 'live' solution that utilises javascript & ajax to work it's magic.
This is usually undesired on a public interface.