Quantcast
Channel: Martin Dráb's Activities
Viewing all articles
Browse latest Browse all 17532

Getting the local file path of selected file

$
0
0

I browse the file system to select a file. It gives me the file name. I need the complete file location on device to give as input to my function. This code works well when the parameter passed to the UplaodFunction is hard coded path. When trying to pass dynamically, it throws an exception

AzureViacSharp1.CSharpClass  testingDll;

           InteropPermission p;

           str fileUrl;

           FileUploadTemporaryStorageResult result = File::GetFileFromUser() as FileUploadTemporaryStorageResult;

           if (result && result.getUploadStatus())

           {

               fileUrl = result.getDownloadUrl();

               info(fileUrl);

           }

           p = new InteropPermission(InteropKind::DllInterop);

           p.assert();

           testingDLL = new AzureViacSharp1.CSharpClass();

           System.IO.Path::Combine();

           testingDll.UploadFunction(@'fileUrl');

           info(strFmt("Success"));


Viewing all articles
Browse latest Browse all 17532

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>