Project

General

Profile

Bug #59

Some file downloads are named downloadfile.bin instead of the correct name

Added by Soren Stoutner over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
2.x
Start date:
09/02/2016
Due date:
% Done:

0%

Estimated time:

Description

This is caused when the download link contains variables that inform a script on the server which file to download. Android's download manager isn't smart enough to figure out what the file name is, so it calles it `downloadfile.bin`.

Downloading from this example link produces an example of this behavior:

http://download.cnet.com/Avast-Free-Antivirus/3001-2239_4-10019223.html?hasJs=n

Resolving this behavior might be difficult without totally replacing Android's download manager with custom download code and requesting full storage write permissions.

History

#1 Updated by Soren Stoutner over 2 years ago

  • Status changed from New to Closed

Android's `WebView` has difficulty discovering the name of some file downloads before it passes them to the `DownloadManager`. Specifically, it reports a null `Content-Description` header. An `AlertDialog`has been implemented that displays the proposed file name before the download begins, which if unknown is set to`downloadfile.bin`. This allows the users to specify the file name if desired. A future revision to `WebView` could resolve this misbehavior.

Commit https://git.stoutner.com/?p=PrivacyBrowser.git;a=commitdiff;h=a45494e763affaa93f42927ee58f45803e1ee9db

Also available in: Atom PDF