Added possibility to upload a file to server