我正在尝试为 Plone 4.1 和 Ploneboard 调整/实现最大对话附件上传文件大小。
处理上传的代码在 PloneBoard 中似乎是这样的:
# Create files in message
if files:
for file in files:
# Get raw filedata, not persistent object with reference to tempstorage
# file.data might in fact be OFS.Image.Pdata - str will piece it all together
attachment = File(file.getId(), file.title_or_id(), str(file.data), file.getContentType())
m.addAttachment(attachment)
在 Plone、Zope 和 Ploneboard 中,在何处以及如何调整上传的文件大小?