I copy-paste from
http://meta.wikimedia.org/wiki/Uploading_files
Q: Why do I get the message: "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."
One reason for this is that something below mediawiki such as PHP or the web
server is limiting the size of http requests. See the next question.
Q: What affects the *maximum file size* that can be uploaded?
- Change "upload_max_filesize = <Number>M" in your php.ini file, where
<Number> is the limit in MBytes.
- Change "post_max_size =<Number>M" in your php.ini file as well and
restart apache.
- If this php4 parameter is too low, you get the error message "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."
- Apache has a directive "LimitRequestBody", which controls the
maximum number of bytes allowed in ANY http request. If this limit is not
somewhat larger than upload_max_filesize, the above message will appear for
files near or above this limit. This directive may appear in various places
in the apache configuration files, or in an .htaccess file. The effect of
this directive may be global, or limited to a particular virtual host or
directory, depending on where it occurs. Consulting the Apache documentation
is advised if you run across this directive to understand how it is being
used.
Some distributions use this directive to guard against denial of service
attacks. For example the php module configuration for Apache2 on RedHat
limits the request body size to 524288
bytes<https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=76976>76>.
Look at /etc/httpd/conf.d/php.conf. -- Other distributions may place the
directive in other places according to their individual configuration file
policies.
- MediaWiki's SpecialImport.php page has a hardcoded MAX_FILE_SIZE on
the form that you may need to increase manually.
[
1]<http://cvs.sourceforge.net/viewcvs.py/wikipedia/phase3/includes/Speciā¦
- PHP's memory_limit may also place a limit on the maximum file size.
See the note below if you find that you are getting a memory exhausted error
in the Apache error log.
2006/8/8, Green, Chris <chris.green(a)landg.com>om>:
I'm trying to upload a PDF file but get the message '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.'
I know the file isn't empty because if I open it up outside of the wiki,
there is plenty there, and it can't be due to a type in the file name as I
obtain it via the browse button on the upload page.
Any ideas ?
This e-mail (and any attachments) may contain privileged and/or
confidential information. If you are not the intended recipient please do
not disclose, copy, distribute, disseminate or take any action in reliance
on it. If you have received this message in error please reply and tell us
and then delete it. Should you wish to communicate with us by e-mail we
cannot guarantee the security of any data outside our own computer systems.
For the protection of Legal & General's systems and staff, incoming emails
will be automatically scanned.
Any information contained in this message may be subject to applicable
terms and conditions and must not be construed as giving investment advice
within or outside the United Kingdom.
The following companies are subsidiary companies of the Legal & General
Group Plc which are authorised and regulated by the Financial Services
Authority for advising and arranging the products shown: Legal & General
Partnership Services Limited (insurance and mortgages), Legal & General
Insurance Limited (insurance), Legal & General Assurance Society Limited
(life assurance, pensions and investments), Legal & General Unit Trust
Managers Limited and Legal & General Portfolio Management Services Limited
(investments).
They are registered in England under numbers shown.
The registered office is Temple Court, 11 Queen Victoria Street, London
EC4N 4TP.
Legal & General Partnership Services Limited: 5045000 Legal & General
Assurance Society Limited: 166055 Legal & General (Unit Trust Managers)
Limited: 1009418 Legal & General (Portfolio Management Services) Limited:
2457525 Legal & General Insurance Limited: 423930
They are registered with the Financial Services Authority under numbers
shown. You can check this at
www.fsa.gov.uk/register
Legal & General Partnership Services Limited: 300792 Legal & General
Assurance Society Limited: 117659 Legal & General (Unit Trust Managers)
Limited: 119273 Legal & General (Portfolio Management Services) Limited:
146786 Legal & General Insurance Limited: 202050
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l