delete temp file on validation fail
Closed this issue · 2 comments
clickanidea commented
Hi, is there a way to automatically delete the temp stored file if any of the other fields of the form fail validation ?
I understand there is the expiration setting and a cron can be set, but it puts friction to the process
Thanks
rahulhaque commented
@clickanidea Unfortunately no. I intentionally wanted the files to exist to help me in testing or understanding my team’s intention. Also you can check for validation fails and call the delete method manually to clear up the files if any other field fails.
clickanidea commented
Thanks