Thanx Bryan and Platonides for the reply
I am still couldnt manage to upload the image
Could you please elaborate more what should be done
I tried to access the page
http://en.wikipedia.org/wiki/Special:Upload
it displays
The action you have requested is limited to Autoconfirmed users, Administrators, Confirmed users.
Return to Main Page.
Hi,
Except from the issue that Platonides mentioned, there is something
else wrong with your postdata
On Thu, Feb 11, 2010 at 2:10 PM, Herulee <heramb.forums@googlemail.com> wrote:This is urlencoded data.
>
> $file = "c:\\images\\D4215_0_0.jpg";
> $data = "action=upload&filename=$file&token=%2B%5C";
>
You specify multipart/form-data. When you specify that you send
> fputs($fp, "Content-type: multipart/form-data \r\n");
multipart/form-data, it's not going to work if you send urlencoded
data. You need to send the data in the encoding that you specify; you
can't expect it to work otherwise.
Bryan
_______________________________________________
Mediawiki-api mailing list
Mediawiki-api@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api