Chat freely about anything...

User avatar
By ArjenV
#96500 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
User avatar
By QuickFix
#96505 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).