ubuntu-webapps-bugs team mailing list archive
-
ubuntu-webapps-bugs team
-
Mailing list archive
-
Message #04795
[Bug 1673022] [NEW] Set FileDialog::nameFilters to an appropriate value
Public bug reported:
There is a TODO in the file dialog implementation:
+ // TODO: Find correct mapping from mimetypes to namefilter.
+ // nameFilters does filtering of file based on file extension and
+ // no clear mapping available from mimetypes to file extension, so allow
+ // all files to avoid any inconsistency as of now.
+ nameFilters: ["All files (*)"]
This can use net::GetExtensionsForMimeType. I don't think there's a Qt
API for it (or, at least I couldn't find one).
Also, the descriptions "All files" and any additional ones (like
"Images" or "Videos") need to be localized.
** Affects: oxide
Importance: High
Assignee: Santosh (santoshbit2007)
Status: Triaged
** Changed in: oxide
Importance: Undecided => High
** Changed in: oxide
Status: New => Triaged
** Changed in: oxide
Assignee: (unassigned) => Santosh (santoshbit2007)
--
You received this bug notification because you are a member of Ubuntu
WebApps bug tracking, which is subscribed to Oxide.
https://bugs.launchpad.net/bugs/1673022
Title:
Set FileDialog::nameFilters to an appropriate value
Status in Oxide:
Triaged
Bug description:
There is a TODO in the file dialog implementation:
+ // TODO: Find correct mapping from mimetypes to namefilter.
+ // nameFilters does filtering of file based on file extension and
+ // no clear mapping available from mimetypes to file extension, so allow
+ // all files to avoid any inconsistency as of now.
+ nameFilters: ["All files (*)"]
This can use net::GetExtensionsForMimeType. I don't think there's a Qt
API for it (or, at least I couldn't find one).
Also, the descriptions "All files" and any additional ones (like
"Images" or "Videos") need to be localized.
To manage notifications about this bug go to:
https://bugs.launchpad.net/oxide/+bug/1673022/+subscriptions