#Form validations in Custom Upload Handler
1 messages · Page 1 of 1 (latest)
You first upload the file then validate the values
What if validation of other values fails? Then I've just uploaded a file that's not attached to any schema.
Delete it, or ignore it, S3 is cheap enough to ignore it but since you got the path after the upload you can delete it
Got it. Maybe I'm just trying to be too efficient.
this happens to us all 😹
I am currently doing the same thing sergio suggests when users upload images. Ideally there's also validation on the frontend that should catch 99% of those issues, unless the data for some reason cannot be validated on the frontend