apache / royale-asjs

Apache Royale ASJS
Apache License 2.0
372 stars 116 forks source link

Multiple Files Selection FileReferenceList. #1108

Open asifashfaq opened 3 years ago

asifashfaq commented 3 years ago

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.

asifashfaq commented 3 years ago

Is anyone here to help.. Waiting For Reply...

yishayw commented 3 years ago

Hi Asif,

As far as I know multiple file upload is not yet supported.

Yishay

From: Asif @.> Sent: Thursday, May 6, 2021 2:05 AM To: @.> Cc: @.***> Subject: Re: [apache/royale-asjs] Multiple Files Selection FileReferenceList. (#1108)

Is anyone here to help.. Waiting For Reply...

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/apache/royale-asjs/issues/1108#issuecomment-833104293, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAQBE7PCIVX5WEJGB45VCRLTMHFKBANCNFSM44CIYX7A.