Project

General

Profile

Actions

Bug #59

closed

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

Added by Soren Stoutner about 8 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Next Release
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.

Actions #1

Updated by Soren Stoutner about 8 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

Actions #2

Updated by Soren Stoutner over 5 years ago

  • Priority changed from 2 to Next Release
Actions

Also available in: Atom PDF