I have seen this problem intermittently on several MediaWiki versions
(1.3.9, 1.4.2, 1.4.4) over the past six months. I'm on a hosting
service that gives me no visibility or control of the various Apache
settings.
I did spend a half day trying to track this down and found out the
PHP session variables that hold the file parameters were not
persistent after the verification page. The images were indeed being
uploaded to the server, but the session variables were lost. In the
midst of my debugging, things suddenly started to work. I reverted
back to the original PHP code and life was wonderful. Since my
immediate task was to upload a large set of images, I pressed on with
that task instead of trying to figure out what was previously not
working.
I'm still perplexed. Unless someone at my hosting service is
randomly flipping Apache parameters, I don't see why the
LimitRequestBody directive is a likely candidate. Something related
to session management seems more suspect.
Con Rodi
Center for Human-Computer Interaction
Virginia Tech
On Sep 2, 2005, at 9:10 AM, Rick DeNatale wrote:
On 9/2/05, Robert Klausner
<robertklausner(a)gmx.at> wrote:
Hi,
I have troubles uploading files.
Every time I try to upload a file, my browser sends the file and
then i get
a "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"
message.
My configuration is:
MediaWiki: 1.5rc4
PHP: 4.4.0 (apache2handler)
MySQL: 4.0.24
Linux media 2.6.12-gentoo-r6
I already tried everything on
http://meta.wikimedia.org/wiki/
Uploading_files
file_uploads On
upload_max_filesize 2M
post_max_size 8M
I looked at that meta page and, although it did have some words about
the LimitRequestBody directive in Apache, the way it was worded might
lead those not using Apache2 on Redhat to ignore it. It's a general
issue for any installation running Apache 1.3 or later. I've reworded
the article in hopes of clarifying it.
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l