Skip to content

Commit

Permalink
fix(galileo-cli): document upload content-type added
Browse files Browse the repository at this point in the history
  • Loading branch information
sperka authored and JeremyJonas committed Nov 2, 2023
1 parent 5786ee7 commit e6262a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/galileo-cli/examples/simple-upload/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"exampleContent2": {
"pageContent": "This is my example content 2",
"metadata": {
"sourceType": "on-the-fly-content"
"sourceType": "on-the-fly-content",
"json-base64": "eyJjaMOsYSBraMOzYSI6Imdpw6EgdHLhu4siLCJnacOhIHRy4buLIjoiY2jDrGEga2jDs2EifQ=="
}
}
}
Expand Down
1 change: 1 addition & 0 deletions packages/galileo-cli/src/lib/account-utils/s3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ export namespace s3 {
Key: `${options.uploadKeyPrefix}/${docKey}`,
Metadata: fileMetadata,
Body: pageContent,
ContentType: 'text/plain',
},
queueSize: 4, // optional concurrency configuration
partSize: 1024 * 1024 * 5, // optional size of each part, in bytes, at least 5MB
Expand Down

0 comments on commit e6262a1

Please sign in to comment.