note 79250 deleted from function.curl-setopt by felipe
| From: | felipe@php.net | Date: | Sun, 30 Mar 2008 18:45:35 +0000 |
| Subject: | note 79250 deleted from function.curl-setopt by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-137763@lists.php.net to get a copy of this message | ||
Note Submitter: nico at nicoswd dot com
----
Another small note on file uploads.
Specify the FULL path to the file.
<?php
$data = array(
'file' => '@C:/foo/bar/filename.ext',
'foo' => 'bar'
);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
?>
Something like:
<?php
$data = array('file' => '@filename.ext');
?>
...Didn't work for me.