cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: post file

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 5 Mar 2003 09:29:51 +0100 (CET)

On Tue, 4 Mar 2003, jafrif wrote:

> thanx alot for such a quick reply for my questions. i now again with the
> problem, i want to ask that how to post file store in particular location
> say /tmp/abc is the file i want to post.

Posts don't store files in particular locations. Posts upload data to a
remote script. The script may do whatever it want with it.

What kind of html form are you trying to "emulate" with this formpost?

> /* Add simple file section */
> curl_formadd(&formpost, &lastptr, CURLFORM_COPYNAME,
> "img1",
> CURLFORM_FILE, "abc", CURLFORM_END);
>
> i want to write code as
> /* Add simple file section */
> curl_formadd(&formpost, &lastptr, CURLFORM_COPYNAME,
> "img1",
> CURLFORM_FILE, "/tmp/abc", CURLFORM_END);
>
> but it does not work..

What doesn't work? What did you think would happen? What didn't happen?

-- 
 Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs.
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2003-03-05