At the moment there is no way I can recover any file that I delete from the attachments in any task. In the situation when you accidentally hit the delete button on any file there should be a way to recover that file from the trash.