You are here

private function Uploader::getFilePath in UEditor - 百度编辑器 7.2

Same name and namespace in other branches
  1. 7.3 includes/Uploader.class.inc \Uploader::getFilePath()

获取文件完整路径

Return value

string

3 calls to Uploader::getFilePath()
Uploader::saveRemote in includes/Uploader.class.inc
拉取远程图片
Uploader::upBase64 in includes/Uploader.class.inc
处理base64编码的图片上传
Uploader::upFile in includes/Uploader.class.inc
上传文件的主处理方法

File

includes/Uploader.class.inc, line 406

Class

Uploader
Created by JetBrains PhpStorm. User: taoqili Date: 12-7-18 Time: 上午11: 32 UEditor编辑器通用上传类

Code

private function getFilePath() {
  $fullname = ueditor_get_savepath($this->fullName);
  $uploadPath = variable_get('file_public_path', conf_path() . '/files');
  $rootPath = strtr(DRUPAL_ROOT, '\\', '/');
  if (substr($fullname, 0, 1) != '/') {
    $fullname = '/' . $fullname;
  }
  return $rootPath . '/' . $uploadPath . $fullname;
}