vtlab-generic-functions 1.0.35 → 1.0.37
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/package.json +1 -1
- package/s3bucket/index.js +2 -1
package/package.json
CHANGED
package/s3bucket/index.js
CHANGED
|
@@ -151,7 +151,8 @@ const uploadFilesToS3 = async (path, files, extension = 'pdf', options = {
|
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
return promisesCollector(files, async (_file) => {
|
|
154
|
-
let
|
|
154
|
+
let randonId = Math.random().toString(36).substring(2, 15);
|
|
155
|
+
let _path = `${path}${new Date().getTime()}${randonId}.${extension}`;
|
|
155
156
|
try {
|
|
156
157
|
let file = Buffer.from(_file.content, "base64");
|
|
157
158
|
return uploadToS3(_path, file, options);
|