UI Button file reference solution in Animate cc in html5 mode
Hey guys,
I would like to ask the community how to implement file reference for uploading file via ui-button component in Adobe Animate cc in canvas(HTML5) mode?
Here is scenario.
On the canvas at design time is placed ui-button with instance name browseImage_btn.
I use these lines below to assign file type to this button with intention to browse the certain file that has to be uploaded.
$("#browseImage_btn").attr("type", "file");
$("#browseImage_btn").attr("id", "getFile");
But this code doesn't acts as i expected. There is no open file dialog box after button was clicked.
And secondly if there is solution via this type of button how to get file path of the chosen file?
Thanks
Ol
