Example #1
0
 function _getFilePath()
 {
     $real_path = WWW_ROOT . IMAGES_URL . $this->upload_path;
     $web_path = $this->upload_path;
     $web_splitor = "/";
     File_Common::createFolder($real_path);
     if ($this->image_file_md5) {
         $real_path .= DS . $this->image_file_md5;
         $web_path .= $web_splitor . $this->image_file_md5;
         File_Common::createFolder($real_path);
     }
     return array('real_path' => $real_path . DS, 'web_path' => $web_path . $web_splitor);
 }