Posted by Andy Dingley on 10/11/49 12:00
On 15 Jan, 07:16, sukhm...@gmail.com wrote:
> I am trying to load a csv file in Iframe element. I just want to
> load it as a text file.
Configure your web server so that it serves this file with a Content-
type (MIME type) of "text/plain". This should then be displayed by
the browser. If the content-type is text/csv, application/csv etc.,
then any copies of Excel on the user's desktop are likely to try and
display it instead.
If you can't change the content-type header for .csv in this
directory, just try renaming the file to .txt instead. That will
nearly always cause the server to serve it as text/plain.
[Back to original message]
|