How can I create a custom mapping that accepts MultipartFile? | cyrus | 2015-04-16 08:52 | |||||||||||||||||||||||||||
Status: Closed | |||||||||||||||||||||||||||||
In vanilla Spring, I'm doing this: >>> @RequestMapping(value="/convertXLSToJSON", method=RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE) public String handleFileUpload(@RequestParam("file") MultipartFile file) { System.out.println("Converting XLS to json..."); // Apache POI conversion stuff return somejsonobject.toString(); } >>> How is this accomplished in a LabKey custom module? (Specifically, I'm working in the "demo" module for now.) Thanks in advance for any help you can provide. |
|||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||