Quantcast
Channel: Adobe Community : Popular Discussions - Archived Discussions
Viewing all articles
Browse latest Browse all 21156

'Sorry. Select fewer files' error - how to workaround?

$
0
0

Hi

 

I'm making an app that loads selected files from a folder, and then parses the filenames.

 

It needs to work for 1000's of files at a time.  Problem is, I get a 'Sorry. Select fewer files' error.

 

I was wondering if there is a way to tell Air to load all the files in a particular directory, rather than selecting files.  If not, is there a workaround for the above error?

 

My code for loading the files so far is:

 

var filesFilter:FileFilter = new FileFilter("Allowed file types", "*.mp3");

 

function browseMedia (e:MouseEvent):void {
   
    newMediaFile.addEventListener(FileListEvent.SELECT_MULTIPLE, filesSelected);
    newMediaFile.browseForOpenMultiple("Select your file/files", [filesFilter]);
}

 

 

Thanks for your help.

 

Shaun


Viewing all articles
Browse latest Browse all 21156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>