-->
Page 1 of 1

Espasyncwebserver Download file dialog always to default dir

PostPosted: Wed May 31, 2023 12:46 pm
by ArjenV
Dear forum.

There are files in LittleFS that I want to download via the webbrowser download dialog. I managed to get this to work, however the browser download dialog does not give me a choice where to download to. It just downloads it to the default download directory.

I use Espasyncwebserver.

I'd like the browser to open the dialog 'download to...?'. How can I accomplish that?

Thanks

Re: Espasyncwebserver Download file dialog always to default

PostPosted: Thu Jun 01, 2023 3:03 am
by QuickFix
In the "Good old days" one could achieve this by using the "Content-disposition: attachment" header in reply to a download request, but as I understand this is overridden nowadays by the user's browser settings and there's no generic (and easy) way around this (but, to be frank, I haven't done real HTML writing for decades now).