Browse Source

上传文件

lyhzzz 1 year ago
parent
commit
daeb415846

+ 0 - 1
src/main/java/com/fdkankan/manage/service/impl/CommonServiceImpl.java

@@ -57,7 +57,6 @@ public class CommonServiceImpl implements ICommonService {
             tempFile = File.createTempFile(uuid ,extName);
             file.transferTo(tempFile);
             fYunFileServiceInterface.uploadFile(tempFile.getPath(), ossPath);
-            tempFile.deleteOnExit();
             return this.ossUrlPrefix + ossPath;
         }catch (Exception e){
             throw new BusinessException(ResultCode.UPLOAD_FILE_ERROR);