multi file upload with play?

后端 未结 2 1577
天涯浪人
天涯浪人 2021-01-03 06:56

I try to upload multiple files with one request. My code looks like the following:

2条回答
  •  旧巷少年郎
    2021-01-03 07:23

    I had the same problem but with an input field for multiple itens.

    
    

    The problem was solved using an array instead of a List, in the action parameters:

    public static void overviewSubmit(File[] files){
        System.out.println(files);
    } 
    

提交回复
热议问题