CyberChef-server icon indicating copy to clipboard operation
CyberChef-server copied to clipboard

Accept multipart form data in /bake

Open d98762625 opened this issue 4 years ago • 0 comments

Motivation: allow users to send files as part of multipart forms to cyberchef-server.

Features:

  • send input as "input" field in form:
curl -F "input=<$(pwd)/test-input.txt" -F "recipe=fromHex"  localhost:3000/bake
  • send input as "input" file in form:
curl -F "input=@$(pwd)/test-input.txt" -F "recipe=fromHex"  localhost:3000/bake
  • recipe must always be a file in the multipart form

Major themes still to complete:

  • [x] Only PoC is proven, "make it work => make it good"
  • [x] Handle optional outputType property
  • [x] Handle input as file, not field

d98762625 avatar Jun 26 '20 16:06 d98762625