I'm not super sure how that would be for an uploaded file, whether you'd have access to the upload stream or to a path to where the file has been saved, but I guess once you have a custom workflow up and running, you could set a breakpoint and see what you have access to.
Then inside your Workflow, you can make a request to send the file to your third party endpoint, and then create a content page, or maybe have that as a separate workflow step etc.
Custom upload code for Umbraco Form upload
Can I somehow create some custom code for a file upload in Umbraco forms?
What I need is to save uploaded videos to a 3 party and create a content page etc. when user is uploading a video.
/Thomas
Hi Amigo
I think you could create a custom Workflow Type
You'd then add this to the Workflow steps of your custom form
Inside the Workflow Type you would have access to the submitted record data:
https://docs.umbraco.com/umbraco-forms/developer/extending/adding-a-workflowtype
I'm not super sure how that would be for an uploaded file, whether you'd have access to the upload stream or to a path to where the file has been saved, but I guess once you have a custom workflow up and running, you could set a breakpoint and see what you have access to.
Then inside your Workflow, you can make a request to send the file to your third party endpoint, and then create a content page, or maybe have that as a separate workflow step etc.
regards
Marc
Hi Marc,
Cool, I will take a look at that. I was thinking about posting the xml to an API url, but your solution sounds better I guess ;-)
Works like a charm, thank you Marc
is working on a reply...