com.baidu.ueditor.upload.BinaryUploader 类的修改源码后,有报错的情况
具体方法是save方法第77行
boolean virtualPath = (boolean)conf.get("virtualPath");
这行报错,说是Object不能转为boolean
求高手解决,原文地址
http://blog.csdn.net/will_awoke/article/details/39579061
public static final State save(HttpServletRequest request,
Map conf) {
//using PathFormat
savePath = PathFormat.parse(savePath, originFileName);
boolean virtualPath = (boolean)conf.get("virtualPath");
String physicalPath = (String) conf.get("rootPath") + savePath;
//启用虚拟路径时,不再使用 rootPath
if(virtualPath)
{
//此时savePath已含有实际的映射物理路径
physicalPath = savePath;//no rootPath
}
log.debug("file physicalPath:" + physicalPath);
InputStream is = fileStream.openStream();
State storageState = StorageManager.saveFileByInputStream(is,
physicalPath, maxSize);
is.close();
}