Mailing Lists
| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-and-php mailing list Archives
file uploading
From: Abdullah Khalfan <abdullahisme_at_yahoo.com>
Date: Tue, 24 Apr 2007 21:21:19 -0700 (PDT)
Hello,
I want to use the sample code listed on the site for uploading a file but for some reason, it isn't working.
$file = "C:\\Documents and Settings\\Default\\My Documents\Scripts\PHP\File Upload, Copy, and Paste.txt";
curl_setopt($ch, CURLOPT_POSTFIELDS, "uploadedfile=@$file");
Is this the correct way of indicating the file to upload? How can I run the code once a form has been submitted with a specified file?
_______________________________________________
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info