Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

newguy's avatar

Laravel Homestead - Problem with Curl posting $_FILES

Hi, everyone.

I'm facing a strange issue with curl posting files to any severs. The send data is posted as $_POST not as $_FILES.

The code is tested on two other servers and it works, also i've tried with anlutro/php-curl but i'm facing the same problem.

Any ideas?

0 likes
1 reply
spekkionu's avatar

Try to check if the content-type is being posted as multipart/form-data.

Please or to participate in this conversation.