Implementation of HTMLInputElement's capture
property.
Not used by Firefox Desktop.
The extension that should be associated with files of the type we want to work with. On some platforms, this extension will be automatically appended to filenames the user enters, if needed.
The filename that should be suggested to the user as a default. This should include the extension.
NS_ERROR_FAILURE on attempts to get
Set the directory that the file open/save dialog initially displays Note that, if displaySpecialDirectory has been already set, this value will be ignored.
the name of the directory
Set the directory that the file open/save dialog initially displays using one of the special name as such as 'Desk', 'TmpD', and so on. Note that, if displayDirectory has been already set, this value will be ignored.
the name of the special directory
Readonly
domGet the DOM File or the DOM Directory
Returns the file or directory currently selected DOM object.
Readonly
domGet the enumerator for the selected files or directories only works in the modeOpenMultiple mode
Returns the files/directories currently selected as DOM object.
Readonly
fileGet the nsIFile for the file or directory.
Returns the file currently selected
Readonly
fileURLGet the nsIURI for the file or directory.
Returns the file currently selected
Readonly
filesGet the enumerator for the selected files only works in the modeOpenMultiple mode
Returns the files currently selected
The filter which is currently selected in the File Picker dialog
Returns the index (0 based) of the selected filter in the filter list.
Readonly
modeThe picker's mode, as set by the 'mode' argument passed to init() (one of the modeOpen et. al. constants specified above).
If set to non-empty string, the nsIFilePicker implementation may use okButtonLabel as the label for the button the user uses to accept file selection.
Optional
aInstancePtr: objectA run time mechanism for interface discovery.
NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.
aInstancePtr must not be null.
[in] A requested interface IID
[out] A pointer to an interface pointer to receive the result.
Initialize the file picker widget. The file picker is not valid until this method is called.
mozIDOMWindow parent. This dialog will be dependent on this parent. parent must be non-null.
The title for the file widget
load, save, or get folder
Generated using TypeDoc
Controls whether the chosen file(s) should be added to the system's recent documents list. This attribute will be ignored if the system has no "Recent Docs" concept, or if the application is in private browsing mode (in which case the file will not be added). Defaults to true.