I have a front end php application that is connected to an API. The application talks to the API through PHP curl as that is the only mode of communication.
I need to upload files to the server, these files are taken from the browser and sent to the server.
What would be the best way to send a multi part file to the server using curl.
Currently i am sending the file using $_POST , but i dont think that is recommended.