asifashfaq opened a new issue #1108:
URL: https://github.com/apache/royale-asjs/issues/1108


   in Royale we are Unable to Select Multiple Files to upload.
   
   in Flex there was support to select multiple files through FileReferanceList.
   below are the flex and Migrated to royale Codes.
   user needs multiple files selection in Apache Royale as it was in flex.
   need suggestions how can that problem will be resolved.
   
   Flex Code:
   'private function btnUploadClick_EH(event:MouseEvent):void {
                                var docFilter:FileFilter = new 
FileFilter("Documents", 
"*.pdf;*.doc;*.docx;*.txt;*.ppt;*.xls;*.xlsx;*.xlsm;*.xltx;*.xltm;*.zip;*.msg");
                                var imagesFilter:FileFilter = new 
FileFilter("Images", 
"*.jpg;*.jpeg;*.JPG;*.JPEG;*.tif;*.tiff;*.gif;*.png;*.bmp");
                                
                                var  strFileRefList:FileReferenceList = new 
FileReferenceList();
                                strFileRefList.addEventListener(Event.SELECT, 
selectHandler);   
                                
                                
                                strFileRefList.browse([docFilter,imagesFilter]);
                                
                        }'
   Apache Royale Migrated Code:
   'private function 
btnUploadClick_EH(event:org.apache.royale.events.MouseEvent):void {
                                var docFilter:mx.net.FileFilter = new 
mx.net.FileFilter("Documents", 
"*.pdf;*.doc;*.docx;*.txt;*.ppt;*.xls;*.xlsx;*.xlsm;*.xltx;*.xltm;*.zip;*.msg");
                                var imagesFilter:mx.net.FileFilter = new 
mx.net.FileFilter("Images", 
"*.jpg;*.jpeg;*.JPG;*.JPEG;*.tif;*.tiff;*.gif;*.png;*.bmp");
                                
                                strFileRef = new mx.net.FileReference();
                                
strFileRef.addEventListener(org.apache.royale.events.Event.SELECT, 
fn_FileSelect_EH);                           
                                strFileRef.browse([docFilter,imagesFilter]);
                        }'
   
   in Migrated code FileReferenceList is replaced by FileReferance.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to