2

我正在尝试为 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 中,在何处以及如何调整上传的文件大小?

4

1 回答 1

3

看起来这个是直接在 PloneBoard 论坛编辑页面设置中控制的。

于 2012-01-13T15:22:53.150 回答