Thread:User talk:Nx/Something completely different: uploading a file

I try to automatize the uploading of some pics, but I run into a problem while using the API:

1. I log in successfully, e.g.:  

 

2. I get my token:   

3. I try to upload. Now, this fails:  

As the pic is on my file system, I would like to use the file parameter - but I can't figure out which format is required: the actual pic? An address?

Can you help? Thanks!