jquery uploadify 上传文件大小,该怎么处理

2025-03-22 09:37:41
推荐回答(1个)
回答1:

版本 uploadfy3

fileSizeLimit : 2048,
具体:
jsp页面:
jQuery("#uploadify").uploadify({
。。。。
buttonText : 'SELECT', // The text to use for the browse button
checkExisting : false, // The path to a server-side script that checks for existing files on the server
debug : false, // Turn on swfUpload debugging mode
fileObjName : 'Filedata', // The name of the file object to use in your server-side script
fileSizeLimit : 2048, // The maximum size of an uploadable file in KB (Accepts units B KB MB GB if string, 0 for no limit)
fileTypeDesc : fileTypeDesc,

版本:jquery.uploadify.v2.1.0.min
'sizeLimit' : 2048*1024,

jQuery("#uploadify").uploadify({

。。。。。

'auto' : false,
'multi' : true,
'queueSizeLimit' : queueSizeLimit,
'buttonText' : 'BROWSE',
'sizeLimit' : 2048*1024,