[Cppcms-users] Loop through files when responding
Brought to you by:
artyom-beilis
From: Marcel H. <ke...@co...> - 2011-12-03 15:33:03
|
Greetings, I am trying to loop through .css, .js, .png or everything else to the browser. At this time I dispatch all incoming transfers that are redirecting to /media to a class that will read the content of the asked file and give out the content via response(). But this is not very comfort, because i have to set the MIME type maually. I read and found the file_server config node, but there is an exclamation, that you shouldn't use it in production enviroment. I understand this, but then tell me how to redirect all the files that are in a special folder to the browser with the right mime type. Or should I really set the MIME type manually? I mean this won't be a big problem, but there has to be a better solution ;) Regards, Marcel Hellwig Hamburg, Germany |