Skip to content

Throw error when name is not set: TypeError: Cannot read properties of undefined (reading 'split') #22

@johnwei005

Description

@johnwei005

Example

--ecbb66dd-44d6-4a21-98de-896ec2f6fd2a
Content-Disposition: form-data

<ACORD><Status>Success</Status><StatusDesc>Please find the quote/policy documents attached as per your request</StatusDesc></ACORD>
--ecbb66dd-44d6-4a21-98de-896ec2f6fd2a
Content-Disposition: form-data; filename="test1.pdf"; name="test.pdf"
Content-Type: application/pdf

xxxx pdf xxxx

--ecbb66dd-44d6-4a21-98de-896ec2f6fd2a--

image

Expected

Do not throw error, just ignore the parts that missing name, or add a default name for the case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions