Brave/Chrome browsers on Android ignore file extension specified in Anvil

The trick is to add another header that specifies the content-type, then it will also work in Chrome/Brave:

r.headers['content-type'] = 'application/apkg'

(This must be put after r.headers['content-disposition'] = ...).

1 Like