简体   繁体   中英

How to add a file to upload in message flow of Mule ESB?

This is my Controller use SpringMVC, it has 2 params is "file" and "fileDesc":

@RequestMapping(value = "/uploadfiles", method = RequestMethod.POST)
@ResponseBody
public String createResource(@RequestParam("file") MultipartFile[] files, @RequestParam("fileDesc") String fileDesc, Locale locale)
        throws IOException, ServiceProcessException {...}

And this is my design in Mule:

在此处输入图片说明

I don't know how to get files to get value in controller because data I send to Mule then point to Controler in runtime.

A similar use case has been discussed here .

HTH.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM