@@ -86,6 +86,11 @@ public class TagController extends BaseController {
@RequestMapping(value = "fileUpload")
public String fileUpload(String fileValues, String readonly, String uploadPath, String type, String fileNumLimit, String fileSizeLimit, String allowedExtensions, Model model) {
String[] fieldValuesArra = fileValues.split("\\|");
+ try {
+ fileValues = URLDecoder.decode(fileValues,"UTF-8");
+ } catch (UnsupportedEncodingException e) {
+ e.printStackTrace();
+ }
String fileIds = "";
String fileSizes = "";
for(String value: fieldValuesArra){
@@ -42,7 +42,7 @@ deniedExtensions: 禁止上传的文件类型
area: ['800px', '300px'],
title:"上传文件",
auto:true,
- content: "${ctx}/tag/fileUpload?fileValues="+encodeURIComponent(currentFileValues)+"&uploadPath=${uploadPath}"+"&type=${type}"+"&readonly=${readonly}"
+ content: "${ctx}/tag/fileUpload?fileValues="+encodeURI(encodeURI($("input[name='${path}']").val()))+"&uploadPath=${uploadPath}"+"&type=${type}"+"&readonly=${readonly}"
+"&fileNumLimit=${fileNumLimit}"+"&fileSizeLimit=${fileSizeLimit}"+"&allowedExtensions=${allowedExtensions}"+"&deniedExtensions=${deniedExtensions}",
cancel: function(index, layero){
var iframeWin = layero.find('iframe')[0]; //得到iframe页的窗口对象,执行iframe页的方法:iframeWin.method();
@@ -20,6 +20,7 @@
<a style="display: none" class="fa fa-cloud-download download-this fa-2x file-item pull-right text-info {{d.file.hide}}" data-url="{{d.file.url}}"></a>
</div>
+
</script>
<script type="text/javascript">
// 添加全局站点信息