Download Test

This page tests a bunch of download/open methods for weird Android web views.

Test file contents: GABB_DOWNLOAD_TEST_BIN_123

If Google Drive is the only thing that works, this web view may only hand off downloads when the URL is a normal HTTPS file response with useful headers. Data URLs and Blob URLs are commonly blocked or ignored in picky embedded browsers, because apparently browsers needed one more way to be annoying.

Status log

Ready.

Method 1: direct data URL download, application/octet-stream

Download test.bin via data URL

Method 2: JavaScript Blob download, application/octet-stream

Method 3: open raw data URL in new tab/window

Open raw data URL

Method 4: text/plain data URL download

Download test.txt via text/plain data URL

Method 5: same-folder file link with download attribute

Download same-folder test.bin
Download same-folder test.txt

Method 6: same-folder file link without download attribute

Open/download same-folder test.bin
Open/download same-folder test.txt

Method 7: same-folder file in new tab/window

Open test.bin in new tab/window
Open test.txt in new tab/window

Method 8: form GET submit to file

Method 9: JavaScript location.href to file


Method 10: JavaScript window.open file


Method 11: hidden iframe navigation


Method 12: visible iframe navigation


Method 13: Blob as text/plain

Method 14: Blob as application/bin

Method 15: Blob as application/download

Method 16: FileReader converts Blob to data URL, then opens it


Method 17: generated anchor, no download attribute

Method 18: generated anchor, download attribute

Method 19: generated anchor to same-folder file


Method 20: tiny HTML file opens the file

Open helper page

The helper page immediately tries a normal link and a script redirect to test.bin.

Method 21: zip file test

Download test.zip
Open/download test.zip without download attribute