cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F767GTx custom board with webserver (LWIP and HTTPD) : how to change filename when i download a file ?

LRABO.1
Associate II

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.

0 REPLIES 0