OrchardCMS / OrchardCore

Orchard Core is an open-source modular and multi-tenant application framework built with ASP.NET Core, and a content management system (CMS) built on top of that framework.
https://orchardcore.net
BSD 3-Clause "New" or "Revised" License
7.39k stars 2.39k forks source link

Orchard Core - Uploading Image from Code. #4634

Open krchandancs opened 4 years ago

krchandancs commented 4 years ago

I have recently started learning Orchard Core. Everything is working fine if I use the Admin Console to create the content to upload Images. Here I have Created Untitled This is my UI from where I am able to save Images using default orchard functionality.

Here are my questions:-

  1. Can we Upload this Image from code instead?
  2. How Can I Upload Image from a form using workflow? (Consider the attached Image, I want to post this form to the workflow and save all the form fields in DB) image Below is my workflow form which is not currently working. (I was trying posting these form data to be saved from my API controller but It failed. Noticed - I have sent a POST request to my API) image
hishamco commented 4 years ago

/cc @jptissot

sebastienros commented 4 years ago

We need a new Workflow task for that. Feel free to start working on it.