cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

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?

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2007-04-25