Well you'll need a custom workflow to do that, but you can simply start by modifying the existing workflow code, check the sourcecode for the default providers:
Would you be able to share your solution? Im looking forward to implement Contour file upload linking to a document type Upload field or an alternate approach.
Upload Media - Create Umbraco Document
Hi,
I have a form with a media upload field, and I want to on submit save the field as a Umbraco Document (I have mapped all fields).
Currently with the default workflow the media uploader does not handle this. Im guessing I will need to write a custom workflow.
Can I edit the existing workflow for "Save as Umbraco Document"?
Any help getting the ball rolling on this is much appreciated.
Owen
Comment author was deleted
Hi Owen,
Well you'll need a custom workflow to do that, but you can simply start by modifying the existing workflow code, check the sourcecode for the default providers:
http://our.umbraco.org/FileDownload?id=2922
Hi Tim,
Thanks for the advice.
I opened up SaveAsUmbracoNode.cs - and am now looking through the code.
Is this where I need to implement my Upload logic?
Is there another Workflow that I can look at to get a better idea of how to map these values?
Cheers,
Owen
Bump!
Comment author was deleted
Well the upload has already happened if you have an upload field on your form.
So all you need to do is set the upload property value on the document to the path of the file...
Owen,
Did you ever create a workflow to create a media item from a file upload? Care to share your solution?
Thanks,
Jason
Hi Jason
Have you figured out on how to create media item from Contour file upload, or map the Contour file upload to a document type Upload field?
Would appreciate if you can share the source if you have already figured out a solution. my email is akeilox (a) gmail.com
many thanks in advance!
I was able to get this working. The tricky part was getting the crops to generate. I'll have to see what I have in BitBucket.
Thanks,
Jason
Thats great news Jason! Did you manage to solve the crop generation as well?
Looking forward to your solution!
cheers
The crop generation was handled by DAMP. It auto-creates crops for you if installed and configured correctly.
-Jason
Hi again Jason
Would you be able to share your solution? Im looking forward to implement Contour file upload linking to a document type Upload field or an alternate approach.
many thanks in advance!
is working on a reply...