Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3de4e84

Browse files
set acl to public
1 parent dc7ce19 commit 3de4e84

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎functions/save.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@ exports.handler = function(event, context, callback) {
2525

2626
// Add a file to a Space
2727
var params = {
28-
Body: JSON.stringify(jsondata),
28+
Body: JSON.stringify(jsondata.data),
2929
Bucket: "netlify-spaces",
3030
Key: "data.json",
31+
Acl: "public-read",
3132
};
3233

3334
s3.putObject(params, function(err, data) {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /