Bug 51045 - [Qt] Implement HTML File Input "accept" attribute
Summary: [Qt] Implement HTML File Input "accept" attribute
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: Platform (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Enhancement
Assignee: Nobody
URL:
Keywords: Qt, QtTriaged
Depends on:
Blocks:
 
Reported: 2010-12-14 10:34 PST by Jarred Nicholls
Modified: 2014-02-03 03:17 PST (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jarred Nicholls 2010-12-14 10:34:47 PST
Append to ChromeClientQt::runOpenPanel and QWebPage to implement the "accept" attribute.  Convert from a MIME Type list into a QFileDialog filter string.
Comment 1 Benjamin Poulain 2010-12-18 09:22:48 PST
Now that I have seen https://bugs.webkit.org/show_bug.cgi?id=51043 and the FileChooser API I wonder if our existing API for the file picker is just not future proof.

If we have to add an extension to QWebPage for each change of FileChooser, our API might get uglier and uglier with time. I don't know if other changes are planned.

Maybe the solution is to have a new slot like this:
bool QWebPage::chooseFileOrDirectory(const QWebFilePickerOption &).


Please consider having a look at this API for WebKit 2 as well when fixing the bug :)
Comment 2 Jon Lee 2011-09-14 15:47:22 PDT
See also bug 45079.
Comment 3 Jocelyn Turcotte 2014-02-03 03:17:00 PST
=== Bulk closing of Qt bugs ===

If you believe that this bug report is still relevant for a non-Qt port of webkit.org, please re-open it and remove [Qt] from the summary.

If you believe that this is still an important QtWebKit bug, please fill a new report at https://bugreports.qt-project.org and add a link to this issue. See http://qt-project.org/wiki/ReportingBugsInQt for additional guidelines.