Home > Web Front-end > JS Tutorial > jquery uploadify is invalid solution under FF_jquery

jquery uploadify is invalid solution under FF_jquery

WBOY
Release: 2016-05-16 16:35:16
Original
1131 people have browsed it

Js code

$('#file_upload').uploadify({ 
buttonImage: '${ctx }/commons/uploaddify/img/browse-btn.png', 
swf :'${ctx }/commons/uploaddify/uploadify.swf', 
uploader :'../servlet/defaultDispatcher;jsessionid=${pageContext.session.id}?__action=xxx', 
fileTypeExts: '*.jpg;*.png;*.gif;*.bmp', 
fileTypeDesc: '图像文件', 
formData: { 
timestamp: new Date().getTime() 
}, 
onSelect: function(file){ 
//重写校验 
}, 
onUploadProgress: function(file,bytesUploaded,bytesTotal,totalBytesUploaded,totalBytesTotal){ 
$('#pregress').html('总共需要上传'+bytesTotal+'字节,'+'已上传'+totalBytesTotal+'字节'); 
}, 
onUploadSuccess: function(file){ 
//上传成功 
} 
}); 
Copy after login

Refer to the online solution and just add jsessionId after the uploader path.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template