Skip to content

Commit

Permalink
some adjusts
Browse files Browse the repository at this point in the history
  • Loading branch information
luancazarine committed Sep 19, 2024
1 parent c4194e1 commit 983b66a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions components/fileforge/actions/generate-pdf/generate-pdf.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default {
files: {
type: "string[]",
label: "HTML Files",
description: "The HTML files to convert to PDF. Each file should be a valid path to an HTML file.",
description: "The HTML files to convert to PDF. Each file should be a valid path to an HTML file saved to the `/tmp` directory (e.g. `/tmp/image.png`). [See the documentation](https://pipedream.com/docs/workflows/steps/code/nodejs/working-with-files/#the-tmp-directory)..",
},
test: {
type: "boolean",
Expand Down Expand Up @@ -69,7 +69,10 @@ export default {
formData.append("files", fs.createReadStream(checkTmp(file)));
}

formData.append("options", JSON.stringify(data), {
formData.append("options", JSON.stringify({
...data,
host: true,
}), {
contentType: "application/json",
});

Expand Down

0 comments on commit 983b66a

Please sign in to comment.