Я пытаюсь загрузить файл через форму
<form action="#">
Select a file: <input type="file" id="photos_upload_input" multiplie="">
<input type="submit">
</form>
, используя QWebPage .
class WebPage(QWebPage):
def __init__(self, parent = None):
QWebPage.__init__(self)
self.overrideUpload = None
def extension(self, extension, option, output):
'''
The behavior of this function is determined by extension .
The option and output values are typically casted to the corresponding types (for example,
ChooseMultipleFilesExtensionOption and ChooseMultipleFilesExtensionReturn for ChooseMultipleFilesExtension )
'''
...?
if self.overrideUpload is None:
return super(WebPage, self).extension(self, extension, option, output)
result = self.overrideUpload
....?
Заранее благодарен.