[wp-trac] Re: [WordPress Trac] #3225: Export file does not download in FF

WordPress Trac wp-trac at lists.automattic.com
Sun Oct 29 18:02:38 GMT 2006


#3225: Export file does not download in FF
----------------------------+-----------------------------------------------
 Reporter:  Viper007Bond    |        Owner:  markjaquith
     Type:  defect          |       Status:  assigned   
 Priority:  normal          |    Milestone:  2.1        
Component:  Administration  |      Version:  2.1        
 Severity:  normal          |   Resolution:             
 Keywords:                  |  
----------------------------+-----------------------------------------------
Comment (by Viper007Bond):

 Okay, I found it in vB's source and here's what it sends:

 {{{
 header('Content-Type: ' . $filetype);
 header('Expires: ' . gmdate('D, d M Y H:i:s') . ' GMT');
 header('Content-Disposition: attachment; ' . $filename);
 header('Content-Length: ' . strlen($filestring));
 header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
 header('Pragma: public');

 echo $filestring;
 exit;
 }}}

 I'd paste the whole `file_download()` function and the tweaks it does to
 `$filename`, but the vB license doesn't allow me to redistribute it's code
 and I don't want to risk it anymore than I have just done now. ;)

-- 
Ticket URL: <http://trac.wordpress.org/ticket/3225#comment:5>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list