apache / apache/royale-asjs

Multiple Files Selection FileReferenceList.

Open
#1,108 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
ActionScript
Stars
380
Forks
120
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Research direction

Compare the Flex FileReferenceList example with the migrated Apache Royale code, focusing on where FileReference replaces the list-based selection. Determine the supported Royale entry point for selecting multiple files; done means users can select multiple files for upload as in Flex.

Written by the indexing model from the issue text.

Assessment

Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.