I want to upload multiple file.And I need to identify each file in the backend. I want to use name in the dom element, but if I give every input a different name, my spring controller will not get the multiple file.
<input type="file" name="files" />
<input type="file" name="files" />
@RequestParam("files") MultipartFile[] files
I have searched but not found some help. Thanks. My only solution is to pass some extra information to the backend to identify each file.
Aucun commentaire:
Enregistrer un commentaire