mirror of
https://github.com/strapi/strapi.git
synced 2026-01-08 05:04:10 +00:00
use getFileKey method
This commit is contained in:
parent
456bdcba33
commit
22ab52aa4e
@ -89,8 +89,7 @@ module.exports = {
|
||||
}
|
||||
|
||||
return new Promise((resolve, reject) => {
|
||||
const path = file.path ? `${file.path}/` : '';
|
||||
const fileKey = `${path}${file.hash}${file.ext}`;
|
||||
const fileKey = getFileKey(file);
|
||||
|
||||
S3.getSignedUrl(
|
||||
'getObject',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user