我有一個html格式的動態數字<input type='file' />
,文件&文本框<input type='text' />
。 我怎樣才能在球衣後端所有的數據.. 我已經做到了像這樣的靜態數量的輸入:獲取球衣後端的所有輸入文件
@POST
@Path("post")
@Consumes("multipart/form-data")
public Response postCategory(@FormDataParam("text1") String text1,FormDataMultiPart fm,
@FormDataParam("file1") InputStream file1,
@FormDataParam("text2") String text2,
@FormDataParam("file2") InputStream file2) {
System.out.println("CategoryService.postCategory()");
System.out.println("text1:" + text1);
System.out.println("text2:" + text2);
}