cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

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?

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

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET