Show errors returned by the server while attaching a file

Signed-off-by: emanuele <emanuele45@gmail.com>