Parse multipart form data - config syntax #537
Replies: 2 comments 2 replies
-
To parse the "feedback" part as JSON, I think you would use:
See https://github.com/adnanh/webhook/blob/master/docs/Hook-Examples.md#multipart-form-data Saving the "screenshot" as a PNG may be trickier, but you should be able to use See https://github.com/adnanh/webhook/blob/master/docs/Hook-Examples.md#pass-file-to-command-sample |
Beta Was this translation helpful? Give feedback.
-
Thanks for the answer. Sadly it does not work.
Output von webhook:
In the given example (https://github.com/adnanh/webhook/blob/master/docs/Hook-Examples.md#multipart-form-data) there is often the reference to "payload" as source and name. For me the handling is unclear. Stefan |
Beta Was this translation helpful? Give feedback.
-
I´m new in the webhook topic and I try to implement my first (or to be more precise my second) webhook.
The webhook i receieve is a multipart form:
First part is a file (e.g. PNG):
Second Part is a json:
Now I have several problems/questions:
What is the correct syntax for the hook-configuration-file?
I tried:
but it is not working.
What has to be used for the source and the name fields?
Sorry if that are stupid questions, but in the moment I´m little bit lost...
Regards
Stefan
Beta Was this translation helpful? Give feedback.
All reactions