Issue with uploads being removed after validation failure
Issue with uploads being removed after validation failure
I have an issue is similar to https://datatables.net/forums/discussion/comment/126585/#Comment_126585. If a field is invalid after an image has been uploaded it gets remove when the form is submitted. I tracked the problem down to dbClean() but only when the tableField parameter is used. If I pass only the function it works as expected.
I've created a example repo to replicate the issue. Check the readme for instructions on how to set up the app and recreate the issue.
This question has an accepted answers - jump to answer
Answers
Thank you for this. I'm afraid I don't have an immediate fix for it, but it is an issue that I've now logged to be fixed (DD-1141 - internal tracking).
dbClean()
shouldn't be getting called if validation fails I think.Allan
Fixed here:
Allan