Initializes a new instance of this object.
The root document that can be used to create the file dialog.
The container to house the input element.
Opens the file dialog.
Note that this uses the older node callback style rather than returning a promise. This is intentional due to how this object opens a file select. Since there is no way to determine if the user canceled the dialog, returning a promise would actually potentially result in a memory leak since it would never get resolved. Therefore, the class callback style has to be used here.
The file mime types to accept.
The callback for when the user selects a file.
Represents a file select that is opened from an input.