Jquery uploadify is an invalid solution under FF
- 2020-03-30 04:01:05
- OfStack
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: ' The image file ',
formData: {
timestamp: new Date().getTime()
},
onSelect: function(file){
//Rewrite the check
},
onUploadProgress: function(file,bytesUploaded,bytesTotal,totalBytesUploaded,totalBytesTotal){
$('#pregress').html(' There's a total upload '+bytesTotal+' Bytes, '+' uploaded '+totalBytesTotal+' byte ');
},
onUploadSuccess: function(file){
//Uploaded successfully
}
});
Refer to the web solution and add jsessionId after the uploader path.