rahulhaque/laravel-filepond

delete temp file on validation fail

Closed this issue · 2 comments

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

@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.

Thanks