similar to issue #342 the new method ListObjectsEnumAsync suffers from the problem where the item's Key contains a plus where the space was, so if the result are used for subsequent requests the item isn't found
Using IAsyncEnumerable is much easier to work with compared to IObservable, so I have rewritten the ListObjectsAsync method. This also fixes a bug that causes Minio.Examples.Cases.ListObjects.Run t...
}///删除一个存储桶///删除一个存储桶//////连接实例///存储桶名称///<returns></returns>publicasyncstaticTask<bool>RemoveBucket(MinioClient minio,stringbucketName){boolflag =false;try{boolfound =awaitminio.BucketExistsAsync(bucketName);if(found) {awaitminio.RemoveBucketAsync(bucketName); flag =...
log("MD5:", md5String); // 打印MD5哈希值 // 分片上传文件的函数,接收start和index作为参数 const uploadChunk = async (start: number, index: number) => { if (start >= data.file.size) { return; // 如果start大于等于文件大小,则退出函数 } let end = start + bytesPerPiece; // 计算分片...
开发项目的时候遇到了稍大一点的文件,做上传下载的时候有点慢,就网上冲浪下借鉴各位大佬的代码实现了分片上传、断点续传功能,在此做个记录文章。框架环境说明Minio使用docker部署的,版本:2024.7.4分片上传功能Vue实现<template> <el-upload class="upload-demo" drag action="/xml/fileUpload" multiple :on...
IObservable<Item>> ListObjects(MinioClient minio, string bucketName, string prefix = null, bool recursive = true) { bool flag = false; IObservable<Item> observable = null; try { var found = minio.BucketExistsAsync(bucketName); if (found.Result) { observable = minio.ListObjectsAsync(bucketNa...
import com.atguigu.miniostudyspringboot.util.ParallelMinioClient; import com.atguigu.miniostudyspringboot.util.ReflectUtils; import io.minio.MinioAsyncClient; import io.minio.MinioClient; import lombok.Data; import org.springframework.boot.autoconfigure.condition.ConditionalOnBean; import org.springframework...
.ScreenshotVideo(currentFile.raw);// 1. 计算文件MD5this.getFileMd5(currentFile.raw, async (md5, totalChunks) => {// 2. 检查是否已上传const checkResult = await self.checkFileUploadedByMd5(md5)// 确认上传状态if (checkResult.code === 1) {self.$message.success(`上传成功,文件地址:${...
package com.xy.util; /** * http状态码枚举类 */ public enum ResultCode { SUCCESS(1, "Success", "成功"), UPLOADING(2, "Uploading", "上传中"), FAIL(-1, "Err", "失败"), DATABASE_OPERATION_FAILED(504, "数据库操作失败"), CONTINUE(100, "Continue", "请继续发送请求的剩余部分"), ...
import com.wusuowei.miniouploadfile.utils.RespEnum; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.BeanUtils; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Service; import org.springframework.web.multipart.MultipartFile; import javax.ann...