
com.baidu.ueditor.upload.Uploader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com.baidu.ueditor Show documentation
Show all versions of com.baidu.ueditor Show documentation
百度UEditor的java服务端库,根据官方版本做部分修改
The newest version!
package com.baidu.ueditor.upload;
import com.baidu.ueditor.define.State;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
public class Uploader {
private HttpServletRequest request = null;
private Map conf = null;
public Uploader(HttpServletRequest request, Map conf) {
this.request = request;
this.conf = conf;
}
public final State doExec() {
String filedName = (String) this.conf.get("fieldName");
State state = null;
if ("true".equals(this.conf.get("isBase64"))) {
state = Base64Uploader.save(this.request.getParameter(filedName),
this.conf);
} else {
state = BinaryUploader.save(this.request, this.conf);
}
return state;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy