anime-from-upload.json 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. {
  2. "active": true,
  3. "connections": [
  4. {
  5. "sourceNodeId": "n_form",
  6. "sourceOutput": "main",
  7. "targetInput": "data",
  8. "targetNodeId": "n_process"
  9. }
  10. ],
  11. "name": "anime from upload",
  12. "nodes": [
  13. {
  14. "config": {
  15. "description": "Upload a picture. It goes through the same steps as one from the feed, and is published when it is done.",
  16. "fields": [
  17. {
  18. "accept": "image/*",
  19. "label": "Image",
  20. "maxSizeMb": 16,
  21. "name": "image",
  22. "required": true,
  23. "type": "file"
  24. }
  25. ],
  26. "password": "REDACTED-form-password",
  27. "path": "",
  28. "responseMessage": "Thanks - the image is being processed. The post appears on the blog in a few minutes.",
  29. "responseMode": "immediate",
  30. "title": "Turn a photo into an anime post"
  31. },
  32. "id": "n_form",
  33. "name": "Form",
  34. "position": {
  35. "x": 0,
  36. "y": 0
  37. },
  38. "type": "form-trigger"
  39. },
  40. {
  41. "config": {
  42. "fields": [
  43. {
  44. "name": "file",
  45. "value": "{{$node['Form'].form.image}}"
  46. }
  47. ],
  48. "inputSource": "fields",
  49. "workflowId": "wf_58ed4490-dad0-4ea3-9c89-7122339dadb9"
  50. },
  51. "id": "n_process",
  52. "name": "Process Image",
  53. "position": {
  54. "x": 300,
  55. "y": 0
  56. },
  57. "type": "call-workflow"
  58. }
  59. ],
  60. "settings": {}
  61. }