Some file downloads are named downloadfile.bin instead of the correct name
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:
Resolving this behavior might be difficult without totally replacing Android's download manager with custom download code and requesting full storage write permissions.
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.