Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
April 7, 2005, 2:54 pm
rate this thread
I'm sending back a file as the content type but when the file name is
of test.class.php the file dialog (I'm using IE 6 Windows) saves it as
test.class.php. If I send test.php it saves it as test.php. I need
it to default save as "test.class.php". Anyone know why this is and how
to get around it? Heres the exact code I'm using.
header('Content-Type: application/octetstream; name="test.class.php"');
header('Content-Disposition: attachment; filename="test.class.php"');
- R. Rajesh Jeba Anbiah
April 8, 2005, 3:29 am
Re: Content Type save as dialog  appearing in name??
This is IE only bug. Will happen when you use more than one dot in
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com /