Hello,
I have created one ribbon button on "Account" Record form. On Click of that button, it executes below html webresource.
<html><head> <script src="ajax.googleapis.com/.../jquery.min.js"></script> <script type="text/javascript"> $(document).ready(function () { $("#btnSubmit").click(function(){ var url = "https://<tenant>.crm8.dynamics.com/cs/dialog/rundialog.aspx?DialogId=%7b7DF4BAD3-8D06-4259-A5A1-C9E2058ECC99%7d&EntityName=account&ObjectId=%7bB2B1E14F-53AD-E611-8106-C4346BDC3C21%7d"; window.open(url, "_blank", "width=1000,height=1000"); }); }); function myFunction() { alert($('input[type=file]').val()); return false; } </script> <meta><meta><meta><meta><meta></head> <body style="overflow-wrap: break-word;"> <form action="demo.asp"> <input name="fileUpload" id="fuFile" type="file"> <input value="Submit" id="btnSubmit" onclick="myFunction()" type="button"> <input value="Close" type="button"> </form> </body></html>
On click of Submit button, I want to get local file path in Javascript function and call one Dialog process with input parameter as selected file path. I know that in some of the browsers it returns as fake path. How can I achieve this?
Is there any work around or any other control I can use to achieve this?
Please suggest.
Thank you.