MoinMoin-Restrict Upload File"s Length
Posted on Thu 11 March 2010 in 我用(IT) • Tagged with EA, moinmoin, 敏感词
1. 解决方法
# AttachFile.py line 572
# restrict upload file length
#add by LiYan @2010/03/11
limit = 1024*1024*300
file_size = bytes
if file_size>=limit:
# get attached file name
attach_dir = getAttachDir(request, pagename)
fpath = os.path.join(attach_dir, target).encode(config.charset)
os.remove(fpath)
return _(u"reach file ...
Continue reading