function ueditor_get_savepath in UEditor - 百度编辑器 7.3
Same name and namespace in other branches
- 8 ueditor.module \ueditor_get_savepath()
- 7.2 ueditor.module \ueditor_get_savepath()
ueditor get the save path.
5 calls to ueditor_get_savepath()
- action_list.inc in includes/action_list.inc 
- Uploader::getFilePath in includes/Uploader.class.inc 
- 获取文件完整路径
- Uploader::saveRemote in includes/Uploader.class.inc 
- 拉取远程图片
- Uploader::upBase64 in includes/Uploader.class.inc 
- 处理base64编码的图片上传
- Uploader::upFile in includes/Uploader.class.inc 
- 上传文件的主处理方法
File
- ./ueditor.module, line 683 
- Integration ueditor for wysiwyg.
Code
function ueditor_get_savepath($path) {
  $basePath = base_path();
  $filedir = variable_get('file_public_path', conf_path() . '/files');
  if ($path) {
    $savePath = str_replace($basePath . $filedir . '/', "", $path);
    $savePath = str_replace($GLOBALS['base_root'], "", $savePath);
  }
  return $savePath;
}