Answer the question
In order to leave comments, you need to log in
Is it possible to send a string with curl as a file?
It is necessary to send a file as one of the POST parameters. Usually done with @ , like so:
$post = array(
"file_to_upload"=>"@/path/to/myfile.jpg",
);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question