How to upload a file with CefURLRequest?

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

How to upload a file with CefURLRequest?

Postby SolidMercury » Tue Feb 23, 2021 12:34 pm

How to upload file with multipart form data using browser independent requests? Tried using the CefURLRequest::Create(request, client.get(), nullptr); as mentioned in https://bitbucket.org/chromiumembedded/cef/wiki/GeneralUsage#markdown-header-browser-independent-requests but it fails to send multipart form data. As per the code at https://bitbucket.org/chromiumembedded/cef/src/d06fdcff8550e4b86dc23bf33ff195e8a5cd68aa/libcef/browser/net_service/browser_urlrequest_impl.cc?at=master#browser_urlrequest_impl.cc-333, it doesn't seem to support multipart form data? What other choices are there to make the request with custom resource handler. The reason custom resource handler is being used is to modify the URL and the headers.

PS: Had posted a query on this before but there was no response so reposting the query in a simplified manner in terms of the requirement.
SolidMercury
Newbie
 
Posts: 3
Joined: Sun Dec 13, 2020 11:47 pm

Return to Support Forum

Who is online

Users browsing this forum: No registered users and 22 guests