Manage to upload a file to the server