Issue with uploads being removed after validation failure

Issue with uploads being removed after validation failure

jamesj2jamesj2 Posts: 6Questions: 3Answers: 0

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

  • allanallan Posts: 61,972Questions: 1Answers: 10,160 Site admin
    edited September 2019

    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

  • allanallan Posts: 61,972Questions: 1Answers: 10,160 Site admin
    Answer ✓

    Fixed here:

    Allan

This discussion has been closed.