File is not attached to <input type="file"> or javascript triggered
Unsolved
QtWebEngine
-
So I have a basic HTML page in a QTWebengine view, with a form that contains an
<input type="file">
. Form submission works fine but I cannot attach a file to the form. I'm presented with the permissions window (on MacOS) to access the current folder but when selecting a file it is not attached. The javascript change event is never triggered either...document.querySelector('.form__input--file'); fileInput.addEventListener('change', function(e) { if(fileInput.files && fileInput.files[0]) { ... } });
I've tried playing with the various security settings,
--disable-web-security
and...settings.allowRunningInsecureContent: true settings.allowWindowActivationFromJavaScript: true settings.localContentCanAccessRemoteUrls: true settings.localContentCanAccessFileUrls: true
with no success. I'm struggling to find any documentation around this and wondering if it is even possible? This is on QT 5.14.2