And use a hidden field to forms with errors as dirty.
Attach a file by drag & drop or click to upload