[Mediawiki-api] action=upload throws 'uploaddisabled'
Bryan Tong Minh
bryan.tongminh at gmail.com
Fri May 28 22:06:32 UTC 2010
On Sat, May 29, 2010 at 12:02 AM, Will Preston
<Will at olsonkundigarchitects.com> wrote:
> Hello. I’m using version 1.16, and I’m trying to use curl to call the API to
> upload files specified in a form by the user. So, the user submits via a
> POST the file they want to upload, and the php copies that file to a
> temporary spot on the server. I then use curl to tell the API to upload
> that file, but it says
>
>
>
> <error code="uploaddisabled" info="Uploads are not enabled…
>
You need to enable upload-by-url, $wgAllowCopyUploads iirc
>
> So, what’s ‘file contents’ supposed to contain? Thanks for the help.
>
The content of the file wrapped in a valid multipart/form-data request.
Bryan
More information about the Mediawiki-api
mailing list