[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:

Good luck,

More information about the development mailing list