Skip to content

Sending a file with a rare name return"GraphQL multipart request file has not been sent correctly" #4516

@dgfmdrv

Description

@dgfmdrv

API Platform version(s) affected:
2.6.6

Description
When I upload a file with a "rare" character to a graphql endpoint (multipart request) it returns "GraphQL multipart request file has not been sent correctly"

File name example error: AAAA Ø40.pdf. If I remove Ø it works.

How to reproduce
Upload a file to an endpoint graphql and use this filename:

DataPart::fromPath($variables['file'], 'AAAA Ø40.pdf'),

Possible Solution
I will try to remove no ASCII characters from DataPart::fromPath parameter.

Additional Context
Wireshark capture when it works (prueba.jpg filename)
image

Wireshark capture when it return error:
image

I found this topics but don't know if its a DataPart::fromPath problem or server problem (maybe reading the multipart POST content):
symfony/symfony#38132
symfony/symfony#36738
symfony/symfony#37581

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions