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
Thanks in advance
Robert Klausner
On 9/2/05, Robert Klausner robertklausner@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.
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@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@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Perhaps it's in the session management, i'll try to track this down. But files don't appear in the /images directory which is a bit confusing.
-----Ursprüngliche Nachricht----- Von: mediawiki-l-bounces@Wikimedia.org [mailto:mediawiki-l-bounces@Wikimedia.org] Im Auftrag von Con Rodi Gesendet: Freitag, 02. September 2005 17:04 An: MediaWiki announcements and site admin list Betreff: Re: [Mediawiki-l] Upload Problem
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@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@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
I had this problem (yet again) myself, and I resolved it by editing my php.ini and raising memory_limit = 8M to 16M. I'm going to leave a note on the meta page.
Hi, I uploaded a XML-file to my MediaWiki which has a definition like <!DOCTYPE bla SYSTEM 'bla.dtd'> When i try to access these files, Internet Explorer tries to validate this document and does not find the DTD.
Is there a possibilty in MediaWiki by setting MIME-Types or something like that to force IE not to validate my XML-documents?
Thanks, Robert
Am 05.09.2005 um 10:19 schrieb Robert Klausner:
Hi, I uploaded a XML-file to my MediaWiki which has a definition like <! DOCTYPE bla SYSTEM 'bla.dtd'> When i try to access these files, Internet Explorer tries to validate this document and does not find the DTD.
Is there a possibilty in MediaWiki by setting MIME-Types or something like that to force IE not to validate my XML-documents?
how about uploading the dtd too or not use it at all? That's not a bug in MW.
ciao, tom
-- http://de.wikipedia.org/wiki/Benutzer:TomK32 http://www.tomk32.de
I know it's not a MW Bug, i was just thinking about a different solution than copying this file in each /images subdirectory.
Robert
-----Ursprüngliche Nachricht----- Von: mediawiki-l-bounces@Wikimedia.org [mailto:mediawiki-l-bounces@Wikimedia.org] Im Auftrag von Thomas Koll Gesendet: Montag, 05. September 2005 10:43 An: MediaWiki announcements and site admin list Betreff: Re: [Mediawiki-l] XML and IE
Am 05.09.2005 um 10:19 schrieb Robert Klausner:
Hi, I uploaded a XML-file to my MediaWiki which has a definition like <! DOCTYPE bla SYSTEM 'bla.dtd'> When i try to access these files, Internet Explorer tries to validate this document and does not find the DTD.
Is there a possibilty in MediaWiki by setting MIME-Types or something like that to force IE not to validate my XML-documents?
how about uploading the dtd too or not use it at all? That's not a bug in MW.
ciao, tom
-- http://de.wikipedia.org/wiki/Benutzer:TomK32 http://www.tomk32.de
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Am 05.09.2005 um 11:41 schrieb Robert Klausner:
I know it's not a MW Bug, i was just thinking about a different solution than copying this file in each /images subdirectory.
store the dtd at a fixed path outside (or inside if you want ugly paths) your mw installation. that should make sure that it works even if someone d/ls the file and uploads it elsewhere.
ciao, tom -- http://de.wikipedia.org/wiki/Benutzer:TomK32 http://www.tomk32.de
Robert Klausner wrote:
Hi, I uploaded a XML-file to my MediaWiki which has a definition like <!DOCTYPE bla SYSTEM 'bla.dtd'> When i try to access these files, Internet Explorer tries to validate this document and does not find the DTD.
Is there a possibilty in MediaWiki by setting MIME-Types or something like that to force IE not to validate my XML-documents?
Check the documentation for your web server; it's usually pretty easy to configure the file extension to Content-Type mappings.
-- brion vibber (brion @ pobox.com)
It's really pretty easy, it was enough to add a AddType text/xml-external-parsed-entity .xml directive in http.conf to force all browsers not to show the file.
Robert -----Ursprüngliche Nachricht----- Von: mediawiki-l-bounces@Wikimedia.org [mailto:mediawiki-l-bounces@Wikimedia.org] Im Auftrag von Brion Vibber Gesendet: Montag, 05. September 2005 13:16 An: MediaWiki announcements and site admin list Betreff: Re: [Mediawiki-l] XML and IE
Robert Klausner wrote:
Hi, I uploaded a XML-file to my MediaWiki which has a definition like
<!DOCTYPE bla SYSTEM 'bla.dtd'> When i try to access these files,
Internet Explorer tries to validate this document and does not find the DTD.
Is there a possibilty in MediaWiki by setting MIME-Types or something like that to force IE not to validate my XML-documents?
Check the documentation for your web server; it's usually pretty easy to configure the file extension to Content-Type mappings.
-- brion vibber (brion @ pobox.com)
I have added a .htaccess file containing LimitRequestBody 0 To allow the maximium which actually did not help
-----Ursprüngliche Nachricht----- Von: mediawiki-l-bounces@Wikimedia.org [mailto:mediawiki-l-bounces@Wikimedia.org] Im Auftrag von Rick DeNatale Gesendet: Freitag, 02. September 2005 15:11 An: MediaWiki announcements and site admin list Betreff: Re: [Mediawiki-l] Upload Problem
On 9/2/05, Robert Klausner robertklausner@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@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org