Add new callback when addition of a file fails

Introduce a new callback for the ui version which is triggered when the addition of a files fails.
It is useful in combination with the validate plugin to have more control over the ui when the validation fails