Steviex2
test
edittest | |
test test Steviex2 10:19, 23 September 2011 (UTC) |
get upload API to work
editHi Steviex2,
on https://www.mediawiki.org/wiki/API_talk:Upload you share your problems with the upload API.
Currently I try to implement an upload in Javascript, and, as to expect, I'm not able to get it running. I get partly similar errors like you in PHP.
In a minimal example using some text (instead of the images I actually want this to work with) I get the "One of the parameters filekey, file, url, statuskey is required". You mention that "the api needs server var "$_FILES['filename']" and therefor a real form upload". Could you possibly explain what $_FILES['filename']
is, so I could see if I find a Javascript equivalent?
In case I get an implementation running, I happily share it with you and others on the API_talk:upload. --Simulo (talk) 09:18, 30 May 2013 (UTC)
It's a PHP function for file uploads. http://php.net/manual/en/features.file-upload.php