public function uploadFile($localPath) { $file = "/" . $this->environment . "/" . self::APP_NAME . "/" . self::FILE_NAME; $this->connection->remove($file); $this->connection->put($file, $localPath, FTP_BINARY); }