webView is not working properly.

214
2
03-10-2021 04:44 AM
x_d
by
New Contributor III

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

Spoiler


An unhandled type 'QList<QUrl>' was provided in FilePickerController::accepted(QVariant)

 

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.  

Tags (3)
0 Kudos
2 Replies
ErwinSoekianto
Esri Regular Contributor

@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. 

0 Kudos
x_d
by
New Contributor III

@ErwinSoekianto  even BrowserView doesn't work. I have tried that as well

0 Kudos