pashminakazi opened a new issue #708: File Upload not working in Royale
URL: https://github.com/apache/royale-asjs/issues/708
 
 
   Project Details are :
   https://paste.apache.org/cpo8y
   Test case is available on VDI.
   Go to Accounts Payable from Select in Menu
   Go to ATM Rental Income from Setups in Menu
   File : com/dbz/modules/AR/dbzATMRentalReceipt.mxml
   
   dbzATMRentalReceipt has a custom button named 
components2:dbzBtnAddAttachment with id="btnattachment" on Click 
fn_OpenAttachments which is opening dbzBtnAddAttachment  in PopUp. 
dbzBtnAddAttachment  is in DBIZCOMLIB. dbzBtnAddAttachment  has a button Upload 
which is not working.On Upload button a function is called 
   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 Flex on clicking Upload button it is opening a Choose File Popup from 
where we can select any file and upload.
   In Royale nothing happens on clicking Upload button because this function is 
not working.

----------------------------------------------------------------
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


With regards,
Apache Git Services

Reply via email to