WordPress.org

Support

Support » Plugins and Hacks » Delightful Downloads » [Resolved] File Name change of Download when using Android-Browsers

[Resolved] File Name change of Download when using Android-Browsers

  • philchilla

    @philchilla

    Using the built-in Android Browser or Chrome on Android Devices, i recognized that all downloaded files are renamed to “downloadfile.<ext>”. (while <ext> is set correctly according to the mime_type of the file)
    I figured out that this is affected by a bug in the Android Download Manager which doesn’t react in the correct manner. According to the Information provided in the above link, I looked at how the headers are set in includes\process-download.php. line 69 creates an output similar to this:
    Content-Disposition: attachment; filename="MyFileName.ZIP";
    …which will lead the Android Download Manager to ignore the filename provided, because of the trailing semicolon.
    Removing the semicolon fixes the issue.
    A short test on a Desktop Browser (current Chrome) after the change showed normal behaviour.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] File Name change of Download when using Android-Browsers’ is closed to new replies.
Skip to toolbar