I have this problem. I have a laravel code where I tried to submit a post request with 'attachments'. The problem is, when I try to add 'attachments' to the body and added the headers multipart/form-data, it doesn't get anything. I get a blank response when returning the file.(https://i.sstatic.net/opiI7iA4.png)(https://i.sstatic.net/lGqlxHx9.png)(https://i.sstatic.net/jtju5l6F.png)
I tried using try and catch and it doesn't catch any errors. I also tried hasFile and it doesn't go the the else statement so it means there's a file uploaded.