I have an FPGA that is hosting a website with an html and javascript front end and a C backend (ugh).
Is there anyway to send a file from the C backend to the client? I’m talking to the backend via an html form (since the back end is hosted on an FPGA I’m unsure how it will handle AJAX).
Some tricky points, the website is hosted in read only memory (hence the desire to send the client a file).
I’m going nuts, is this impossible?
No, this is possible. You just need to ensure the relevant HTTP headers are set in the
GETresponse. SpecificallyContent-typeandContent-Disposition. e.g.: