- Joined
- Jun 18, 2007
- Messages
- 65,828
- Likes received
- 32,654
- Thanks received
- 10,042
- Location
- Your local branch
My problem could be a misconfigured server then. The shared hosting site I noticed this on recently fixed the Content-Type header setting for downloading log files (*.txt) via the Control Panel. I wonder if they accidentally broke plain text files while they were at it.
Is there a magic incantation I can throw into the HTML which references these text files to set the mime type from there?
Afraid not
If they aren't static text files and you have access to the code that serves them, you could pass a type in the query string. Another possibility (on Apache) would be modifying the server config on a per-directory per-filetype basis to set the content type, maybe using a .htaccess file.