3 Replies Latest reply: Sep 11, 2012 6:08 AM by sinious RSS

    AS3 Flex - users on Windows can select any file on FileReference.browse regardless of FileFilter

    saariko Community Member

      Hello all

       

      I have this line of code in my app, but when i run it on a Windows pc the user is given the ability to choose between "Custom Files" (which should actually read "clips") and (the default, i guess) "all files". In this case the user can, for instance, upload a wmv clip to my system which cannot handle it. Is there a way to prevent the "all files" option or do I need to build my own filtering system AFTER a selection is made?

       

      on a mac everything is fine

       

       

         myFileReference.browse([new FileFilter("clips","*.swf;*.flv;*.f4v;*.mov;*.mp4")])

       

       

      thanx