Extension talk:UploadLocal

From MediaWiki.org
Jump to: navigation, search
Start a new discussion

Contents

Thread titleRepliesLast modified
PHP Errors out511:12, 23 May 2012
Fatal error111:11, 23 May 2012
prepend does not work111:47, 3 April 2012
prepend does not work211:46, 3 April 2012
Initial category for uploaded files210:19, 21 March 2012
patches114:54, 27 February 2012
What about uploading from a given subdirectory ?017:18, 31 January 2012
Download link not working116:44, 13 January 2012
old versions more extensions in see also021:25, 28 December 2011

PHP Errors out

Running Mediawiki 1.18.1

PHP Fatal error: Call to a member function getName() on a non-object in /var/www/includes/upload/UploadBase.php on line 510


it does this for all uploads that I've tested so far

the wiki Im putting this on is pcgamingwiki.com

69.171.162.7622:53, 6 March 2012

I'm not running 1.18 yet.  : ( I'll take a look and see if I can figure it out though.

Cneubauer (talk)10:29, 3 April 2012
 

On line 30 of UploadLocalForm.php, can you change:

$this->upload->initialize( $name, new WebRequestUploadLocal( true, $fileInfo ) );

to:

$this->upload->initialize( $filename, new WebRequestUploadLocal( true, $fileInfo ) );

If that fixes it, I'll commit a patch to the repo. Thanks for the report!

Cneubauer (talk)10:40, 3 April 2012

Actually, I just committed a fix for another bug in http://www.mediawiki.org/wiki/Special:Code/MediaWiki/114682 that should fix this too. Can you try again?

Cneubauer (talk)11:48, 3 April 2012

Just tried for myself, with no luck. Same error that he is getting. Trying to upload roughly 100 files, and no using any prepend or append settings.


Edit -- Found what my error was. Was trying to upload files with extensions that were not supported in my localsettings.php

$wgFileExtensions = array('png', 'gif', 'jpg', 'jpeg', 'doc', 'xls', 'mpp', 'pdf', 'ppt', 'tiff', 'bmp', 'docx', 'xlsx', 'pptx', 'ps', 'psd', 'swf', 'fla', 'mp3', 'mp4', 'm4v', 'mov', 'avi', 'xlsx', 'docm', 'xlsm');

Fixed that and has most common extensions.

72.29.236.12317:35, 16 April 2012

Thanks for figuring that out. I'll add a fix so it throws a warning or something if you try to upload a mime type that isn't permitted in your settings file.

Cneubauer (talk)11:12, 23 May 2012
 
 
 
 

Fatal error

Hi there! I get the following error when I click "upload local files":

Fatal error: Class 'WebRequestUpload' not found in /mnt/webi/b3/15/52442315/htdocs/wiki/extensions/UploadLocal/WebRequestUploadLocal.php on line 2


I am running Mediawiki 1.16.0. I read that this extension only works with 1.17+. Is there any way to make it working for me or do I HAVE to upgrade?

Thanks for your help in advance!

Regards, Chris

112.78.131.3319:44, 14 May 2012

Hi Chris,

Unfortunately, right now there is no version that works with 1.16. If I get some free time, I'll see if I can make it backwards compatible. Until then, if you have access to the server, there is a maintenance script you can use called importImages.php.

Cneubauer (talk)11:11, 23 May 2012
 

prepend does not work

hi, I just noticed that the prepend function is not working. Files are put in the right directory but without been renamed. I am using 1.18.1 wiki with 112487 revision

Any idea ?

Thank you

194.254.225.3515:50, 14 March 2012

Should be fixed by http://www.mediawiki.org/wiki/Special:Code/MediaWiki/114682. Thanks for the report.

Cneubauer (talk)11:47, 3 April 2012
 

prepend does not work

hi, I just noticed that the prepend function is not working. Files are put in the right directory but without been renamed. I am using 1.18.1 wiki with 112487 revision

Any idea ?

Thank you

194.254.225.3515:50, 14 March 2012

confirmed that today using 1.18.0 (108508)

Drzraf2 (talk)14:13, 21 March 2012
 

Initial category for uploaded files

It may be interesting to allow the mass-categorization of uploaded files.

Drzraf2 (talk)16:43, 16 February 2012

Can't you add the category to the "Append to description" field in the upload form?

Cneubauer (talk)14:49, 27 February 2012

of course, you're right.

Drzraf2 (talk)10:19, 21 March 2012
 
 

Where to post patches: email ? bugtracker ? other ? anyway:

[edit] add a title to the form

Such like below (in showForm())

$wgOut->setPageTitle(wfMsg('Upload Local Files'));
Drzraf217:01, 31 January 2012

You can post them here, email them to me, or better than all those options, apply for commit access to MediaWiki and apply them directly to the code. See http://www.mediawiki.org/wiki/Commit_access. I applied this patch. Thanks.

Cneubauer (talk)14:54, 27 February 2012
 

What about uploading from a given subdirectory ?

or would it be a chicken and egg problem ?

Drzraf217:18, 31 January 2012

Download link not working

It seems that the extension has been deleted?

86.110.182.616:18, 13 January 2012

I just checked. It was renamed. I fixed this. Cheers

[[kgh]]16:44, 13 January 2012
 

old versions more extensions in see also

I add a sentence explaining that versions of this extension work for older version of mediawiki, and also added a couple of links to other bulk upload programs, including Extension:Uploadify.[1]

Igottheconch21:25, 28 December 2011
Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox