2020-10-02 02:14 AM
Hi,
I'm a french embedded developer.
At my office, i use a STM32F767GTx custom board with a N25Q128A QSPI Flash memory, and my software works fine.
Recently, i add a WebServer using LWIP and HTTPD.
I have some CSV files on my flash memory, generated by the software.
Using the webserver, i cand download these files on my computer.
In httpd_structs.h, i add content types for the CSV files.
But, when i download the files, how can i have the same file name as in my flash memory ?
I try to use :
Content-Disposition: attachment; filename="nameofthefile"
But it doesn't works, because httpd.c and httpd_structs.h are automatcially generated by CubeIDE, and i lost my code everytime i make some modification !
How can i change that ?
Can i have some helps ?
Thanks a lot.