发布

  • Fix file detection when spooled file is pased (#3932)

    frostbyte_neo 发布于 2025-02-20 13:00:25 +00:00

    This pull request fixes the scenario when SpooledTemporaryFile is passed
    to detect_file type. In such cases some weird number was assigned as
    'name' (and it couldn't be overwritten as SpooledTemporaryFile can't
    have fields assigned 😩 ) so I added in our object factory just another
    scenario where we parse this type of file.
    For BytesIo name attr is None as it should be and some other metadata
    fields are leveraged for file type recognition

    下载附件