Ignore:
Timestamp:
11/20/09 15:17:35 (14 years ago)
Author:
amuller
Message:

Ticket #597 - melhorias no modulo gerenciador de arquivos para arquivos grandes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/filemanager/inc/class.vfs_functions.inc.php

    r1654 r1693  
    216216                function download() 
    217217                { 
    218                         for($i = 0; $i != $this->numoffiles; $i++) 
    219                         { 
    220                                 if(!$this->fileman[$i]) 
    221                                 { 
    222                                         continue; 
    223                                 } 
    224  
    225                                 $download_browser = CreateObject('phpgwapi.browser'); 
    226                                 $download_browser->content_header($this->fileman[$i]); 
    227                                 echo $this->bo->vfs->read(array('string' => $this->fileman[$i])); 
     218                        if($this->file) 
     219                        { 
     220                                //$GLOBALS['phpgw']->browser->content_header($this->file); 
     221                                header ("Content-Type: application/octet-stream"); 
     222                                header("Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0"); 
     223                                header("Pragma: public"); 
     224                                header("Expires: 0"); 
     225                                header ("Content-Disposition: attachment; filename=\"". addslashes($this->file)."\""); 
     226                                echo $this->bo->vfs->read(array('string' => $this->file)); 
    228227                                $GLOBALS['phpgw']->common->phpgw_exit(); 
    229228                        } 
Note: See TracChangeset for help on using the changeset viewer.