File uploading to server fixed