I have a frontend form where images can be uploaded.
I am handling the image moderation within
EVENT_BEFORE_HANDLE_FILE on the Asset class. I am setting session errors for any moderation issues detected.
This is all working great, however I need a way of stopping the image uploading if errors are detected, but I want the session errors to continue to show as the page refreshes.
What is the best way to stop the image upload in this event, but for it to still set the session errors?