- Notifications
You must be signed in to change notification settings - Fork3k
文件上传增加S3协议的OSS支持#328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:master
Are you sure you want to change the base?
文件上传增加S3协议的OSS支持#328
Uh oh!
There was an error while loading.Please reload this page.
Conversation
CLAassistant commentedJun 16, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
...em/hsweb-system-file/src/main/java/org/hswebframework/web/file/FileServiceConfiguration.java OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
...em/hsweb-system-file/src/main/java/org/hswebframework/web/file/FileServiceConfiguration.java OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
...em/hsweb-system-file/src/main/java/org/hswebframework/web/file/FileServiceConfiguration.java OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
...system/hsweb-system-file/src/main/java/org/hswebframework/web/file/web/S3FileController.java OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
liujiang157 commentedJun 17, 2025
重新调整了代码,走本地还是 S3 通过 "hsweb.file.storage"来控制,S3相关配置也遵循之前配置属性的命名基础上添加。控制 S3的相关配置: 单元测试成功之后我删除了accessKey和secretKey,其余问题也改掉了 |
...em/hsweb-system-file/src/main/java/org/hswebframework/web/file/FileServiceConfiguration.java OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
...system/hsweb-system-file/src/main/java/org/hswebframework/web/file/FileUploadProperties.java OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
.../hsweb-system-file/src/main/java/org/hswebframework/web/file/service/FileStorageService.java OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
修改error应当由Mono传递,而不是抛出异常移除非必要Condition条件
.../hsweb-system-file/src/main/java/org/hswebframework/web/file/S3FileStorageConfiguration.java OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
.../hsweb-system-file/src/main/java/org/hswebframework/web/file/S3FileStorageConfiguration.java OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
.../hsweb-system-file/src/main/java/org/hswebframework/web/file/web/ReactiveFileController.java OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
.../hsweb-system-file/src/main/java/org/hswebframework/web/file/web/ReactiveFileController.javaShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
.../hsweb-system-file/src/main/java/org/hswebframework/web/file/web/ReactiveFileController.java OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
...system/hsweb-system-file/src/main/java/org/hswebframework/web/file/FileUploadProperties.java OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
...sweb-system-file/src/main/java/org/hswebframework/web/file/service/S3FileStorageService.javaShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
...sweb-system-file/src/main/java/org/hswebframework/web/file/service/S3FileStorageService.javaShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
采用buffer.asInputStream访问文件移除冗余代码
...sweb-system-file/src/main/java/org/hswebframework/web/file/service/S3FileStorageService.java OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
切换本地和oss通过环境变了file.storage=local/s3控制
s3协议的相关配置均在S3StorageProperties类中