@Service
public class FileUploadUtils
extends bap.core.service.BaseService
| Constructor and Description |
|---|
FileUploadUtils() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancelFileUpload(java.lang.String dbids) |
boolean |
check(java.lang.String id,
java.lang.String webPath)
功能描述: 检查文件是否存在
|
void |
download(java.lang.String attachId,
javax.servlet.http.HttpServletResponse response,
javax.servlet.http.HttpServletRequest request)
文件下载
|
Attachment |
upload(javax.servlet.http.HttpServletRequest request) |
public Attachment upload(javax.servlet.http.HttpServletRequest request) throws java.lang.Exception
java.lang.Exception@Transactional public void cancelFileUpload(java.lang.String dbids)
public void download(java.lang.String attachId,
javax.servlet.http.HttpServletResponse response,
javax.servlet.http.HttpServletRequest request)
attachId - 附件idresponse - 响应流request - 请求流public boolean check(java.lang.String id,
java.lang.String webPath)
id - 附件IDwebPath - 项目路径