Yes, this is a known limitation of the current architecture: the content
hub relies on the advertised mime type to determine which applications
can receive the file. If no explicit mime type is provided by the
server, it tries to infer it from the filename.

In the case of downloading inside the browser, the advertised mime type
(or lack thereof) shouldn’t matter, but if no filename is provided, the
browser still need to assign one. Checking the first few bytes of the
downloaded file would help in determining the real mime type, but
inferring an extension from it is not necessarily trivial.

I’m adding an ubuntu-download-manager task to the bug report, in case we
can improve the situation in that component.

Out of curiosity, before the developer at Geograph applied that fix,
what filename did other browsers suggest for the image, in their "Save
As" dialog?

** Also affects: ubuntu-download-manager (Ubuntu)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to webbrowser-app in Ubuntu.
https://bugs.launchpad.net/bugs/1585774

Title:
  Cannot save.jpg from web page

Status in ubuntu-download-manager package in Ubuntu:
  New
Status in webbrowser-app package in Ubuntu:
  Invalid

Bug description:
   Bear with me on this, it's a bit of a voyage.. There is his /thing/ I
  do when creating publicity for a web site, that works fine in Firefox,
  chrome, opera, Vivaldi, on a desktop; works fine in firefox, chrome,
  safari, and dolphin on IOS, and with internet or chrome on android..
  It doesn't work in our browser on he M10 tablet under OTA10.1

  1. Go to e.g. 
  http://www.geograph.org.uk/stamp.php?id=2612549
  (there are nearly 5 million photos, I chose a nice one for you to play with)

  2. Press 'get stamped image'
  you get an instruction to right-click and save as, and a watermarked image to 
do that to. 

  3. Our version of that is long-press, and download.
  so do that.

  what gets downloaded is not the.jpg but appears to be a fragment of
  html, or the url.

  That is /not/ what happens on any other browser on any other
  platform.. Elsewhere I get the.jpg

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-download-manager/+bug/1585774/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to