Pass fileupload content to workflow

Hey,
i have an upload image component,
i want to trigger a workflow and pass the image content to that workflow.
look like the image component is not available in the params context.

  1. how can I achieve this?
  2. if its not possible how can I upload the image to s3 and pass the url to the workflow?

hi,

it depends on the usage you want to have of the image.
If you just want the data, you can pass the object value of your uploadComponent as you can make with a standard upload button. The object contains name, sizeBytes, type and more important Base64Data.

If you want to have access to on online version of your image, you should try S3 API or another like Cloudinary to store your image and get a public URL to use in response.

hope that'll help

Thanks for the response!
I want to pass the Base64Data to the workflow but how can i do it?
the Base64Data is not accessible in the params i can sent to the workflow.

In the JSON you add a key b64 for example and you put in the value {{ fileuploadButton.value.B64Data }} or something that corresponds to your component.

and in the StartTrigger of your workflow you add a JSON object with the key b64 and maybe with a b64data example to test it when developping

Hey @noamovich - it looks like @Julien_COLOMBEAU has put you on the right track! The following configuration works for me:

If you're finding that you can't reference fileButton1 from within the workflow trigger query, it's possible that you'll need to move the query from the Global scope to the page-specific scope.

I hope that helps! Let us know if you have any additional questions. :+1:

1 Like

Have you had a chance to review this, @noamovich? Or need assistance with implementing anything?