Upload a file with php curl from a client to server?
问题 I'm trying to upload a file automatically from a client-side script which opens a PHP page in my server sending a local path as a GET param. This is a simple python script. My problem is, I can not just fill in the value of an input type file and auto-post the form because for security reasons this doesn't work. So, I thought of using Curl, but then I realized... I have no way of accessing a $_FILES['myfile']['tmp_name'] in my server because this is only posted with a multipart/form-data form