Can you publish a file and resource at the same time in OpenRasta?

Is it possible to upload a file and publish metadata (in the message body) at the same time in OpenRasta? and if so, do you have an example of how to do this?

+3
source share
1 answer

I'm not sure I understood the question? When you download a file from an html form, you get the whole form formatted as multipart / form-data, which means that each field gets its own value sent along with the files.

You just need to define the handler method as Post (string formValue, IFile), and it will work as is.

+3
source

Source: https://habr.com/ru/post/1778177/


All Articles