修改流类型
This commit is contained in:
@@ -40,7 +40,7 @@ public class OBSUtil {
|
|||||||
* @author hongawen
|
* @author hongawen
|
||||||
* @date 2023/3/1 20:50
|
* @date 2023/3/1 20:50
|
||||||
*/
|
*/
|
||||||
public String multiFileUpload(MultipartFile uploadFile, String fileName) {
|
public String uploadMultipart(MultipartFile uploadFile, String fileName) {
|
||||||
ObsClient obsClient = null;
|
ObsClient obsClient = null;
|
||||||
try {
|
try {
|
||||||
obsClient = huaweiObsProperties.getInstance();
|
obsClient = huaweiObsProperties.getInstance();
|
||||||
@@ -75,7 +75,7 @@ public class OBSUtil {
|
|||||||
* @author hongawen
|
* @author hongawen
|
||||||
* @date 2023/3/2 10:18
|
* @date 2023/3/2 10:18
|
||||||
*/
|
*/
|
||||||
public String streamUpload(FileInputStream inputStream, String fileName) {
|
public String uploadStream(InputStream inputStream, String fileName) {
|
||||||
ObsClient obsClient = null;
|
ObsClient obsClient = null;
|
||||||
try {
|
try {
|
||||||
obsClient = huaweiObsProperties.getInstance();
|
obsClient = huaweiObsProperties.getInstance();
|
||||||
|
|||||||
Reference in New Issue
Block a user