Fixed severe breakage of non-JS upload, presumably introduced in the 1.16 upload...
authorTim Starling <tstarling@users.mediawiki.org>
Thu, 27 May 2010 07:30:34 +0000 (07:30 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Thu, 27 May 2010 07:30:34 +0000 (07:30 +0000)
commit008f1ee491eee36f0edac2b655d7582744a27067
treec22bf8e08c2a85989076765bb3547ad79bc26b26
parentadefcd424b1b03f952924d233e6ecf2994492e15
Fixed severe breakage of non-JS upload, presumably introduced in the 1.16 upload rewrite. If the user doesn't enter a destination filename, it's meant to use the name of the source file. Untested code "$wgRequest->getText('wpUploadFile')" did not work, you need to fetch from $_FILES not $_REQUEST. Code to propagate the relevant default to UploadForm was missing, readded here.

Apologies for the nodata hack, but I want to backport this to 1.16, so I don't want to make any HTMLForm.php changes if I can avoid it.
includes/specials/SpecialUpload.php
includes/upload/UploadFromFile.php