# Class: RemoteFileDialog

## RemoteFileDialog()

A dialog box letting the user choose a remote open or save file.

## Constructor

#### new RemoteFileDialog()

Source:
  - res/RemoteFileDialog.js, line 33

### Classes

RemoteFileDialog

### Methods

#### (static) showDialog(xmlEditor, optionsopt, saveModeopt) → {Promise}

Displays a dialog box letting the user choose a remote open or save file.

##### Parameters:

Name | Type | Attributes | Default | Description
--- | --- | --- | --- | ---
`xmlEditor` | XMLEditor |  |  | the XML editor hosting this dialog box.
`options` | object | <optional> | {} | options - dialog box options. See description in ResourceStorage#openResource.
`saveMode` | boolean | <optional> | false | saveMode - specify `true` to display a save file dialog, `false` to display an open file dialog.

Source:
  - res/RemoteFileDialog.js, line 25

##### Returns:

A Promise containing info about the chosen file or `null` if user clicked Cancel.

`uri`
  Absolute URI of chosen file.
`option_name`
  Only when a dialog box "accessory" has been specified: `true` if corresponding check box is checked; `false` otherwise.

Type
  Promise