Hi there, So on my app i'm using webview to open url in browser within app. Whenever i'm trying to upload a image on that site then it shows me this error
An unhandled type 'QList<QUrl>' was provided in FilePickerController::accepted(QVariant)
</code></pre></div><noscript><div class="lia-spoiler-noscript-container"><div class="lia-spoiler-noscript-content">An unhandled type 'QList<QUrl>' was provided in FilePickerController::accepted(QVariant)</div></div></noscript></div></div><P> </P><pre class="lia-code-sample language-markup"><code>Item { height: 700 width: 400 id: app WebView { anchors.fill: parent url: "https://stackoverflow.com/questions/37935657/refused-to-load-the-image-because-it-violates-content-securtiy-policy-cordova" } }
I have given a link from stackoverflow just for testing purpose.
We are building a mobile application and do not want to use browser view as it allows you to break out of the app into the device browser. Is there no solution to make Webview work? Browser view does work but it is not suitable for our use unless there is a way to suppress the header and footer in order for the user to not navigate away from the web page.
@ErwinSoekianto even BrowserView doesn't work. I have tried that as well
@x_d
There is a chance that the website is not allowing upload image operation from "webview" or iframe environment.
Can you try using BrowserView? This is a little bit different than webview, it is using native browser. We have a sample in AppStudio Desktop, where you can simply change the URL to test.
Erwin.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.