CURLRequest multipart File - nothing send |
Hello everybody,
i currently working on a function in a Project of mine where i need to send a file over POST to an API. I used CURLRequest for a POST and GET Api before what works great, but i can't get the multipart File Upload working. I tested it with webhook.site to see what is send. The header is set to multipart, so the multipart option seems to work like it is described in the docs. But the file size is 0 byte and the form parameters are also missing. Did i just miss something or is there a bug? Here is my Codesnippet, the File is created and is not empty, the path variable also has the right path in it. HTTP Response is 200 OK. Code: $client = \Config\Services::curlrequest(); Hope someone has an idea so that i don't have to use curl on it's own ![]() regards, Manuel |
Messages In This Thread |
CURLRequest multipart File - nothing send - by Tysonpower - 02-01-2020, 07:44 AM
RE: CURLRequest multipart File - nothing send - by jreklund - 02-01-2020, 09:31 AM
RE: CURLRequest multipart File - nothing send - by Tysonpower - 02-01-2020, 10:00 AM
RE: CURLRequest multipart File - nothing send - by jreklund - 02-01-2020, 10:44 AM
RE: CURLRequest multipart File - nothing send - by Tysonpower - 02-01-2020, 11:24 AM
RE: CURLRequest multipart File - nothing send - by jreklund - 02-01-2020, 11:49 AM
RE: CURLRequest multipart File - nothing send - by Tysonpower - 02-01-2020, 11:59 AM
RE: CURLRequest multipart File - nothing send - by Nehfer - 05-20-2020, 07:52 AM
RE: CURLRequest multipart File - nothing send - by lrb00 - 03-28-2021, 10:52 AM
|