listpage-next-nest 0.0.248 → 0.0.249
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +1 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -1039,7 +1039,7 @@ class MinioService {
|
|
|
1039
1039
|
async uploadMulterFile(file, folderId) {
|
|
1040
1040
|
const prefix = folderId || '';
|
|
1041
1041
|
const cleanName = file.originalname.replace(/[^a-zA-Z0-9.-]/g, '_');
|
|
1042
|
-
const key = `${prefix}${
|
|
1042
|
+
const key = `${prefix}${cleanName}`;
|
|
1043
1043
|
const s3 = this.getClient();
|
|
1044
1044
|
const command = new client_s3_namespaceObject.PutObjectCommand({
|
|
1045
1045
|
Bucket: this.options.bucketName,
|