Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-20275

[AIR] File.browseForOpen* should allow selecting directories

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • Adobe Flex SDK 3.0 (Release)
    • None
    • MXML Components
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. Open a file select dialog by calling File.browseForOpen / File.browseForOpenMultiple
      2. Try to select a folder (when using browseForOpen), or to make a selection including folders (when using browseForOpenMultiple)

      Actual Results:

      On MacOSX:
      Folders can not be selected. When making a multiple selection including folders, only files are selected.

      On Windows it's even worse:
      Folders are included in the selection, but when the user clicks open, the first folder in the selection is opened. This is clearly buggy behaviour, it is not at all what you'd expect as a user.

      Expected Results:

      Folders should be included in the selection.

      Workaround (if any):

      None

      This is, in my opinion, a serious flaw in the browse functionality. Why can file types be filtered, does File provide [isDirectory, isPackage, isSymbolic], but can folders not be included in the selection? The browse methods should provide a setting to show files/folder/both.

      Now we're forced to create a dialog to browse for selections, while a native dialog would make much more sense.

      Attachments

        Activity

          People

            adobejira Adobe JIRA
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: