又没有用过zyUpload上传多张文件的大神,麻烦给小弟我这新手解释下用法

又没有用过zyUpload上传多张文件的大神,麻烦给我这新手解释下用法
在做javaweb项目,其中商品需要上传多张图片,我找到一个界面好的模板,但是不太会用,又没有谁用过的
求解惑
模板地址http://www.17sucai.com/pins/9159.html

我只用一部分上传预览就好,action获取到了但是这个图片的name我不知道该写什么,求解决
小弟真是看js就有点晕,以后还要学习下又没有用过zyUpload上传多张文件的大神,麻烦给小弟我这新手解释下用法

我这里只把js里生成html的代码贴上去:
(function($,undefined){
$.fn.zyUpload = function(options,param){
var otherArgs = Array.prototype.slice.call(arguments, 1);
if (typeof options == 'string') {
var fn = this[0][options];
if($.isFunction(fn)){
return fn.apply(this, otherArgs);
}else{
throw ("zyUpload - No such method: " + options);
}
}

return this.each(function(){
var para = {};    // 保留参数
var self = this;  // 保存组件对象

var defaults = {
width            : "700px",   // 宽度
height           : "400px",   // 宽度
itemWidth        : "140px",                     // 文件项的宽度
itemHeight       : "120px",                     // 文件项的高度
url              : "upload/UploadAction",   // 上传文件的路径
multiple         : true,   // 是否可以多个文件上传
dragDrop         : true,   // 是否可以拖动上传文件
del              : true,   // 是否可以删除文件
finishDel        : true,   // 是否在上传文件完成后删除预览
/* 提供给外部的接口方法 */
onSelect         : function(selectFiles, files){},// 选择文件的回调方法  selectFile:当前选中的文件  allFiles:还没上传的全部文件
onDelete  : function(file, files){},     // 删除一个文件的回调方法 file:当前删除的文件  files:删除之后的文件
onSuccess  : function(file){},            // 文件上传成功的回调方法
onFailure  : function(file){},            // 文件上传失败的回调方法
onComplete  : function(responseInfo){},    // 上传完成的回调方法
};

para = $.extend(defaults,options);

this.init = function(){
this.createHtml();  // 创建组件html
this.createCorePlug();  // 调用核心js
};

/**
 * 功能:创建上传所使用的html
 * 参数: 无
 * 返回: 无
 */
this.createHtml = function(){
var multiple = "";  // 设置多选的参数
para.multiple ? multiple = "multiple" : multiple = "";
var html= '';

                       if(para.dragDrop){
// 创建带有拖动的html
html += '<s:form id="uploadForm" action="'+para.url+'" method="post" enctype="multipart/form-data">';
html += ' <div class="upload_box">';
html += ' <div class="upload_main">';
html += ' <div class="upload_choose">';
             html += ' <div class="convent_choice">';
             html += ' <div class="andArea">';
             html += ' <div class="filePicker">点击选择文件</div>';
             html += ' <input id="fileImage" type="file" size="30" name="fileselect[]" '+multiple+'>';
             html += ' </div>';
             html += ' </div>';
html += ' <span id="fileDragArea" class="upload_drag_area">或者将文件拖到此处</span>';
html += ' </div>';
            html += ' <div class="status_bar">';
            html += ' <div id="status_info" class="info">选中0张文件,共0B。</div>';
            html += ' <div class="btns">';
            html += ' <div class="webuploader_pick">继续选择</div>';
            html += ' <div class="upload_btn">开始上传</div>';
            html += ' </div>';
            html += ' </div>';
html += ' <div id="preview" class="upload_preview"></div>';
html += ' </div>';
html += ' <div class="upload_submit">';
html += ' <button type="button" id="fileSubmit" class="upload_submit_btn">确认上传文件</button>';
html += ' </div>';
html += ' <div id="uploadInf" class="upload_inf"></div>';
html += ' </div>';
html += '<s:/form>';
}else{
var imgWidth = parseInt(para.itemWidth.replace("px", ""))-15;

// 创建不带有拖动的html
html += '<s:form id="uploadForm" action="'+para.url+'" method="post" enctype="multipart/form-data">';
html += ' <div class="upload_box">';
html += ' <div class="upload_main single_main">';
            html += ' <div class="status_bar">';
            html += ' <div id="status_info" class="info">选中0张文件,共0B。</div>';
            html += ' <div class="btns">';
            html += ' <input id="fileImage" type="file" size="30" name="fileselect[]" '+multiple+'>';
            html += ' <div class="webuploader_pick">选择文件</div>';
            html += ' <div class="upload_btn">开始上传</div>';
            html += ' </div>';
            html += ' </div>';
            html += ' <div id="preview" class="upload_preview">';
    html += ' <div class="add_upload">';
    html += ' <a style="height:'+para.itemHeight+';width:'+para.itemWidth+';" title="点击添加文件" id="rapidAddImg" class="add_imgBox" href="javascript:void(0)">';
    html += ' <div class="uploadImg" style="width:'+imgWidth+'px">';
    html += ' <img class="upload_image" src="control/images/add_img.png" style="width:expression(this.width > '+imgWidth+' ? '+imgWidth+'px : this.width)" />';
    html += ' </div>';
    html += ' </a>';
    html += ' </div>';
html += ' </div>';
html += ' </div>';
html += ' <div class="upload_submit">';
html += ' <button type="button" id="fileSubmit" class="upload_submit_btn">确认上传文件</button>';
html += ' </div>';
html += ' <div id="uploadInf" class="upload_inf"></div>';
html += ' </div>';
html += '<s:/form>';
}

            $(self).append(html).css({"width":para.width,"height":para.height});
            
            // 初始化html之后绑定按钮的点击事件
            this.addEvent();
};


action我设置了,可以转到指定的action,但是这个上传图片input标签的name我到底该写什么?,有哪位大神解释下,谢谢
又没有用过zyUpload上传多张文件的大神,麻烦给小弟我这新手解释下用法
------解决思路----------------------
你的代码根本无法执行。js里面不能写服务器端的代码啊
<s:form id="uploadForm"

这些代码全是错误的

你只能使用
<form 等html标签

fileselect[] 就是名称啊