|
@@ -11,6 +11,7 @@ import org.springframework.util.ObjectUtils;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
+import java.io.File;
|
|
|
import java.io.IOException;
|
|
|
|
|
|
/**
|
|
@@ -76,7 +77,7 @@ public class SceneFileController{
|
|
|
log.error("参数有误!");
|
|
|
return Result.failure("参数有误!");
|
|
|
}
|
|
|
- fYunFileService.uploadFile(file.getInputStream(),key);
|
|
|
+ fYunFileService.uploadFile(file.getInputStream(),key.concat(File.separator).concat(file.getOriginalFilename()));
|
|
|
return Result.success();
|
|
|
}
|
|
|
}
|