NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: terryd on February 18, 2013, 11:50:35 PM
-
IE8/IE9 Firefox/Chrome
using the Web72 example.
If I create a csv file using Chrome or Firefox the csv is created and I can either open or save it.
Using Internet explorer 8 or 9 I either get the attached screen message (1.jpg) stating that IE thinks that I have created an xls file, or a message that the file cannot be found(2.jpg) ( the file name in the url is $$$81657.csv) The image is one that I received from one of my clients.
To me this is a major problem since I cannot specify to the clients what browser to use because they are "walk ins" rather than direct clients and unfortunately they haven't had the privilege of viewing Bruce's webinar on NT7.
Is there anything I can do to sort this problem out?
[attachment deleted by admin]
-
I've seen the same thing with IE, and found that when you get the page not found message, notice the url is correct. If you hit the Enter key, the file will open up. Not a solution but a work around that for my customers is OK.
Sounds like in your situation, it would not be workable.
Mike Springer
-
can you change the file extension to txt?
-
Hi Mike
Yes everything is correct except IE appears not to have created a csv file. Thanks for your comments.
-
Hi Kevin.
I could change the extension to txt butI would assume that the file would be opened within the browser as text, rather than allowing the user to save the file with a name of their choice.
-
you may be able to do something by setting the Content-Disposition (ref book). The other possibility is to detect the browser and serve the file with an xls extension if IE.
-
Kevin is right - your best bet is to set the Content-Disposition.
The File Download example (40) - ServeDocument procedure has an example of this.
p_web.HeaderDetails.ContentDisposition = 'attachment; filename="'&p_web.GetValue('name')&'"'
also, you'll notice in that procedure
p_web.ReplyContentType = p_web._GetContentType(loc:fileName)
Cheers
Bruce