Uploaded a file to the server
Implemented submiting attachment to the server