[development] Add image node with PHP Curl?
andrew morton
drewish at katherinehouse.com
Tue Jul 17 19:40:30 UTC 2007
On 7/17/07, James Tunick <jt722 at nyu.edu> wrote:
> $postarray = array(
> 'files[image]' =>'@$file',
> 'taxonomy[3]'=>'2',
> 'title' => $file,
> 'body' => 'xxxx',
If this is the actual code you're using, I think the problem is that
you're not passing in the file name correctly. The single quotes wont
allow for the variable substitution needed to insert your filename.
I've got an old blog post with some sample code:
http://drewish.com/blogger/archives/2005/01/27/using_php_and_curl_to_do_an_html_file_post.html
Good luck,
andrew
More information about the development
mailing list