right method with sending file to remote url