I have a Hybrid webapp that runs on iOS and uses wkwebview.
The user click on a button, selects a local file, and receives a variable with File API structure, which includes the filename (file1.zip).
A call is triggered from the javascript side to the iOS (objective-c) with the name of the file.
I want to open the file on iOS side using objective-c. But for that I need to know the path of the file. Incidently, I do see a print-out in iOS when selecting the file:
file:///private/var/mobile/Containers/Data/Application/9CCE059F-2B96-46DD-9528-18B806CEC5E6/Documents/file1.jpg
So I assume that the path of the file is:
/private/var/mobile/Containers/Data/Application/9CCE059F-2B96-46DD-9528-18B806CEC5E6/Documents
But, is there a proper / methodical way to get the file path similar to the filename?
Thanks