Changeset 293


Ignore:
Timestamp:
2007/02/17 23:16:40 (16 years ago)
Author:
naka
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev/data/class/SC_UploadFile.php

    r17 r293  
    195195                    $arrRet[$val]['filepath'] = $temp_url . "/" . $this->temp_file[$cnt]; 
    196196                } 
    197                 $arrRet[$val]['filepath_dir'] = $this->temp_dir . $this->temp_file[$cnt]; 
     197                $arrRet[$val]['real_filepath'] = $this->temp_dir . $this->temp_file[$cnt]; 
    198198            } elseif ($this->save_file[$cnt] != "") { 
    199199                // ¥Õ¥¡¥¤¥ë¥Ñ¥¹¥Á¥§¥Ã¥¯(¥Ñ¥¹¤Î¥¹¥é¥Ã¥·¥å/¤¬Ï¢Â³¤·¤Ê¤¤¤è¤¦¤Ë¤¹¤ë¡£) 
     
    203203                    $arrRet[$val]['filepath'] = $save_url . "/" . $this->save_file[$cnt]; 
    204204                } 
    205                 $arrRet[$val]['filepath_dir'] = $this->save_dir . $this->save_file[$cnt]; 
     205                $arrRet[$val]['real_filepath'] = $this->save_dir . $this->save_file[$cnt]; 
    206206            } 
    207207            if($arrRet[$val]['filepath'] != "") { 
    208                  
    209208                if($real_size){ 
    210                     list($width, $height) = getimagesize($arrRet[$val]['filepath_dir']); 
     209                    if(is_file($arrRet[$val]['real_filepath'])) { 
     210                        list($width, $height) = getimagesize($arrRet[$val]['real_filepath']); 
     211                    } 
    211212                    // ¥Õ¥¡¥¤¥ë²£Éý 
    212213                    $arrRet[$val]['width'] = $width; 
Note: See TracChangeset for help on using the changeset viewer.