I think icon + Attach a file should be hidden when it failed.
icon + Attach a file
The design I creadted before: