Skip to content

Does cpr not yet support curl_mime_data_cb? #931

@ZACKhdn

Description

@ZACKhdn

Is your feature request related to a problem?

I'm uploading a large file, cpr::Multipart and cpr::File(use file path) work fine.
But if I want to upload a file with a Chinese name under the English windows system,will fail to upload.
I guess it's the character encoding that prevents curl from opening the file properly.
I've tried re-encoding the characters without success.
So I try to use cpr::ReadCallback to upload the file, but it fails because the content-type is application/x-www-form-urlencoded.
I want to use cpr::Multipart with file stream.
Is there any other way I can solve this problem?
thank you.

Possible Solution

I see that curl is supported but cpr is not yet.
I hope that cpr will support it as soon as possible.

Alternatives

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions