feat: apply UI/storage/share optimizations and quota improvements
This commit is contained in:
@@ -1534,7 +1534,7 @@ class OssStorageClient {
|
||||
*/
|
||||
async createReadStream(filePath) {
|
||||
const key = this.getObjectKey(filePath);
|
||||
const bucket = this.user.oss_bucket;
|
||||
const bucket = this.getBucket();
|
||||
|
||||
const command = new GetObjectCommand({
|
||||
Bucket: bucket,
|
||||
@@ -1589,7 +1589,7 @@ class OssStorageClient {
|
||||
*/
|
||||
async getPresignedUrl(filePath, expiresIn = 3600) {
|
||||
const key = this.getObjectKey(filePath);
|
||||
const bucket = this.user.oss_bucket;
|
||||
const bucket = this.getBucket();
|
||||
|
||||
try {
|
||||
const command = new GetObjectCommand({
|
||||
@@ -1646,7 +1646,7 @@ class OssStorageClient {
|
||||
*/
|
||||
async getUploadPresignedUrl(filePath, expiresIn = 900, contentType = 'application/octet-stream') {
|
||||
const key = this.getObjectKey(filePath);
|
||||
const bucket = this.user.oss_bucket;
|
||||
const bucket = this.getBucket();
|
||||
|
||||
try {
|
||||
const command = new PutObjectCommand({
|
||||
|
||||
Reference in New Issue
Block a user