| | |
| | | import com.doumee.core.constants.Constants; |
| | | import com.doumee.core.utils.DateUtil; |
| | | import com.doumee.core.utils.FtpUtil; |
| | | import com.doumee.core.utils.tyyun.TyyZosUtil; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | |
| | | import org.springframework.web.multipart.MultipartHttpServletRequest; |
| | | import org.springframework.web.multipart.commons.CommonsMultipartResolver; |
| | | |
| | | import javax.imageio.ImageIO; |
| | | import javax.imageio.stream.ImageOutputStream; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.awt.*; |
| | |
| | | String fileName = UUID.randomUUID().toString() + nfix; |
| | | String tempFileName = nowDate + "/" + fileName; |
| | | String key = folder + tempFileName;// 文件名 |
| | | TyyZosUtil obs = new TyyZosUtil(endpoint,access_id, access_key); |
| | | /* TyyZosUtil obs = new TyyZosUtil(endpoint,access_id, access_key); |
| | | if (obs.uploadInputstreamObject(file.getInputStream(),bucketName, key)) { |
| | | // 移动成功,返回文件名 |
| | | // sendSuccessMessage(response, resourcePath+key); |
| | |
| | | context.put("message", "上传失败"); |
| | | writerJson(response, context); |
| | | return; |
| | | } |
| | | }*/ |
| | | } |
| | | |
| | | } |