Open
Description
See #91 as an example
After running the cURL command and receiving the payload in the Node.js app, the PDF differs and does not show the original contents.
To replicate
- Clone the branch
- Navigate to
typescript/inbound
- Install dependencies
npm i
- Run the app
npm run dev
- Create a Hookdeck connection and copy the Source URL from the output:
curl --location 'https://api.hookdeck.com/2023-07-01/connections' \
-X PUT \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_PROJECT_API_KEY' \
--data '{
"name": "binary-test-connection",
"source": {
"name": "binary-test"
},
"destination": {
"name": "cli-binary-test",
"cli_path": "/upload"
}
}'
- Connect with the Hookdeck CLI
hookdeck listen 3030 binary-test
- Upload the file:
curl --location 'YOUR_HOOKDECK_URL' \
--form 'pdf=@"example-files/test.pdf"'
- View the original file
test.pdf
- it has text contents. Look in/uploads
for the uploaded PDF and view it. The text contents will be missing.
Metadata
Metadata
Assignees
Labels
No labels