added code for uploading file to the owncloud