How to get file name from CosMultipartResolver
I have been using the org.springframework.web.multipart.cos.CosMultipart Resolver and binding the file bytes to a command class with initBinder e.g. binder.registerCustomEditor(byte[].class, new ByteArrayMultipartFileEditor());
This gets me the file bytes, but I also need the file name. Is there are way to do this? I tried subclassing ByteArrayMultipartFileEditor and can reference the file name, but not sure how to make it accessible in onSubmit(Object command) method. Thanks