Python PIL “IOError: image file truncated” with big images

前端 未结 5 1146
逝去的感伤
逝去的感伤 2020-12-02 06:17

I think this problem is not Zope-related. Nonetheless I\'ll explain what I\'m trying to do:

I\'m using a PUT_factory in Zope to upload images to the ZODB per FTP. Th

5条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-02 07:04

    This might not be a PIL issue. It might be related to your HTTP Server setting. HTTP servers put a limit on the size of the entity body that will be accepted.

    For eg, in Apache FCGI, the option FcgidMaxRequestLen determines the maximum size of file that can be uploaded.

    Check that for your server - it might be the one that is limiting the upload size.

提交回复
热议问题