[Bug 1500742] Re: Downloading a file requires its mime-type to be known in advance

2016-04-01 Thread Olivier Tilloy
Lowering importance as the browser now allows downloading files without choosing a target application upfront. ** Changed in: webbrowser-app (Ubuntu) Importance: High => Medium -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.

[Bug 1500742] Re: Downloading a file requires its mime-type to be known in advance

2015-10-27 Thread Olivier Tilloy
** Description changed: On touch devices, this is what happens when a user clicks on a link that triggers a download, or triggers one from the context menu: - - oxide issues a downloadRequested signal with a URL, and optionally headers, a suggested filename and a mime type - - the

[Bug 1500742] Re: Downloading a file requires its mime-type to be known in advance

2015-10-26 Thread Matthew Paul Thomas
Fortunately, there is a detailed spec for "probably not trust the mimetype provided by the server". Modern browsers compute the MIME type based mainly on a combination of the supplied MIME type, and the first 512 bytes of the downloaded resource.

[Bug 1500742] Re: Downloading a file requires its mime-type to be known in advance

2015-10-09 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: content-hub (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1500742 Title:

[Bug 1500742] Re: Downloading a file requires its mime-type to be known in advance

2015-10-09 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: ubuntu-download-manager (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.

[Bug 1500742] Re: Downloading a file requires its mime-type to be known in advance

2015-09-29 Thread Olivier Tilloy
** Summary changed: - Downloading a file requires its mime-type in advance + Downloading a file requires its mime-type to be known in advance -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1500742

[Bug 1500742] Re: Downloading a file requires its mime-type to be known in advance

2015-09-29 Thread Chris Coulson
Just to be clear - there aren't really any cases where DownloadRequest.mimeType from Oxide should be trusted to make a decision. Even in the case where the download is triggered on the Content-Disposition header where Oxide does know the mime-type, that mime-type becomes untrustworthy the moment

[Bug 1500742] Re: Downloading a file requires its mime-type to be known in advance

2015-09-29 Thread Olivier Tilloy
Yes, that sounds like something we should bring up with design, given that the two options, when available, provide redundant functionality. Let’s discuss it today during our weekly design catchup. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed

[Bug 1500742] Re: Downloading a file requires its mime-type to be known in advance

2015-09-29 Thread Michael Sheldon
We don't really have a default option any more, in the case where we know the mimetype we present the user with both options, and in the case where we don't we just provide them with the download option (see

[Bug 1500742] Re: Downloading a file requires its mime-type to be known in advance

2015-09-29 Thread Michael Sheldon
With the new internal downloads branch when we don't have a mime type we just allow the user to download the file to the Downloads directory without choosing an application, then after the download is finished with run Qt's mimetype detection on the final file, we don't currently override the

[Bug 1500742] Re: Downloading a file requires its mime-type to be known in advance

2015-09-29 Thread Olivier Tilloy
Yes, we should probably not trust the mimetype provided by the server, if we can extract a valid mime type from the downloaded file. Also, I’m wondering if downloading directly to the Downloads folder shouldn’t be the default option? What use case doesn’t this cover? -- You received this bug