I am trying to automate uploading images (or files). We are currently using mediaWiki
I am using the following code:
$webrequest=new FauxRequest( $data, true );
$uploader=new UploadForm( $webrequest );
$fname is a relative file name, while ="$bulkImageDirectory/$fname" is the
absolute file name. The file is located in wiki/images/tmp/bulkImages/.
I receive the error: "The file you uploaded seems to be empty. This might be due to a
typo in the file name. Please check whether you really want to upload this file." And
the upload form displays on the screen with wpDestFile filled in.
Do you know what the problem is?
Is there another way to automatically upload a file within an extension?
Is there documentation on this?