{file-name} download failed due to an unknown error when file HAS DOWNLOADED

470 views
Skip to first unread message

Tomasz Polański

unread,
May 18, 2017, 12:03:43 PM5/18/17
to Chromium-discuss
Hey,

I'm trying to download a PDF file by creating a Blob link for the data received from a server. 
Chrome for Android shows 'downloading...' and then shows the error message '{file-name} download failed due to an unknown error'. But when I go to downloads in Chrome for Android, the file is listed there and opens as well. 

I have the same issue with 58.* version of chrome on my Nexus 5X. This is the code that tells the browser to download a file as a blob:

function saveBlob (blob: Blob, name: string): void {
  const url = window.URL.createObjectURL(blob);

  const a = document.createElement('a');
  a.style.display = 'none';
  a.href = url;
  a.download = name;
  document.body.appendChild(a);
  a.click();

  window.URL.revokeObjectURL(url);
  a.remove();
};

On desktop Chrome, this code works nicely but on mobile not.
Currently, I've tried 58, 59 and 60 mobile version of Chrome and it does not work there with the error mentioned above: "{file_name} download failed due to an unknown error".
I've tried an older version of Chrome mobile (53) and it works there.

Did anyone else have a similar issue?

Cheers,
Tomek

PhistucK

unread,
May 18, 2017, 12:40:13 PM5/18/17
to krig...@gmail.com, Chromium-discuss
You can search crbug.com for an existing issue and star it. If you cannot find one, file a new issue using the "New issue" link on the same page.
Please, do not add a "+1" or "Me too" or "Confirmed" (or similar) comment. It just wastes the time of Chrome engineers and sends unnecessary e-mails to all of the people who starred the issue.

You can reply with a link to the found or created issue and might get triaged (and fixed) faster.

Thank you.



PhistucK

--
--
Chromium Discussion mailing list: chromium...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-discuss

---
You received this message because you are subscribed to the Google Groups "Chromium-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-discuss+unsubscribe@chromium.org.

Sean Elliot

unread,
May 28, 2017, 2:10:11 AM5/28/17
to Chromium-discuss, krig...@gmail.com


PhistucK

To unsubscribe from this group and stop receiving emails from it, send an email to chromium-discu...@chromium.org.

Reply all
Reply to author
Forward
0 new messages