Defect #6089
open
Large uploads fails with Firefox
Added by Harald Klimach over 14 years ago.
Updated over 10 years ago.
Description
This is a defect describing the behaviour observed in this thread
There seems to be a problem with uploaded files in a very special corner case.
It arises with Firefox as client, at least on MacOSX 10.6.
It works with Safari.
Where it fails it comes up with a redMine 500 error page, but nothing is traced in
the log files.
Here is our setup description:
We are running nginx 0.7.67 on an OpenBSD 4.7 (MP) box serving as a proxy for Redmine 1.0.0 running in a
mongrel_cluster on an Ubuntu 10.04 up to date system:
- database: mysql Ver 14.14 Distrib 5.1.41, for debian-linux-gnu (x86_64) using readline 6.1
- ruby: ruby 1.8.7 (2010-01-10 patchlevel 249) [x86_64-linux]
- rails: 2.3.5
- redmine: Redmine 1.0.0.stable.3892
The failure appears only for files which are larger then the in-memory cache of nginx for the upload.
The problem is the same with Firefox on a Linux box.
I found this thread: http://www.webmasterworld.com/forum88/13149.htm where a connection
with
enctype="multipart/form-data"
is suggested, which is also used in the
Redmine upload HTML code.
I encountered the same problem - when uploading larger files (even though the Redmine - Administration - Settings - General - Attachment max. size was correctly set) the Redmine failed with no entry in production.log. After some investigation I encountered following message in apache log:
[warn] [client X.X.X.X] mod_fcgid: HTTP request length 136384 (so far) exceeds MaxRequestLen (131072), referer: http://X.X.X/projects/XXX/files/new
After setting FcgidMaxRequestLen 51200000
in /etc/apache2/mods-available/fcgid.conf and reloading apache everything worked as it should.
Note that if you use mod_ruby to run Redmine instead of fcgi you will have to add LimitRequestBody 51200000
to your httpd.conf.
This is a severe issue for Firefox users. Isn't any fix or workaround known?
Everything works on Chromium, but it fails on Firefox.
- Related to Defect #14953: Intermittent AJAX Atttachement Upload Failure in Firefox added
Also available in: Atom
PDF