Multiple File Upload in Grails

后端 未结 2 846
后悔当初
后悔当初 2020-12-30 11:18

I\'m trying to integrate the excellent jquery-file-upload from blueimp into Grails 2.0 and to write a new plugin for that. I know there is already a plugin, but it doesn\'t

2条回答
  •  离开以前
    2020-12-30 11:58

    Actually I figured it out. There is only one input[type=file] in the form and if I select several files they are not sent on the same request. The query-file-upload script sends as many POST requests as there are files. That's why request.getFileNames() only gives me one entry each time. I managed to create my plugin, it will be published soon. Watch out for http://grails.org/plugin/bootstrap-file-upload.

提交回复
热议问题