@teamkeel/functions-runtime 0.395.4 → 0.395.5
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/src/File.js +4 -1
package/package.json
CHANGED
package/src/File.js
CHANGED
|
@@ -169,7 +169,7 @@ class File extends InlineFile {
|
|
|
169
169
|
Bucket: process.env.KEEL_FILES_BUCKET_NAME,
|
|
170
170
|
Key: "files/" + this.key,
|
|
171
171
|
ResponseContentDisposition: `attachment; filename="${encodeURIComponent(
|
|
172
|
-
filename
|
|
172
|
+
this.filename
|
|
173
173
|
)}"`,
|
|
174
174
|
});
|
|
175
175
|
|
|
@@ -223,6 +223,9 @@ async function storeFile(contents, key, filename, contentType, expires) {
|
|
|
223
223
|
filename: filename,
|
|
224
224
|
},
|
|
225
225
|
ACL: "private",
|
|
226
|
+
ContentDisposition: `attachment; filename="${encodeURIComponent(
|
|
227
|
+
this.filename
|
|
228
|
+
)}"`,
|
|
226
229
|
};
|
|
227
230
|
|
|
228
231
|
if (expires) {
|