From: mame@... Date: 2014-06-07T04:35:22+00:00 Subject: [ruby-core:62977] [ruby-trunk - Bug #8370] Constants MAX_MULTIPART_LENGTH in cgi\core.rb Issue #8370 has been updated by Yusuke Endoh. > There is no reason, that I can see, to artificially limit the upload size on the client side I think that MAX_MULTIPART_LENGTH is the limit on the server side. The limit itself is actually required to prevent shortage of server resource. I agree that the limit should be configuable by users. In fact, the author of cgialt, Makoto Kuwata, said in the proposal, http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-dev/33606 > ��������������������������������������������������������������������������������������������������� > ������������������������������������������������������������������������ > For simplicity, the limit is specified by a constant, > but if needed, please use class variable or instance variable > to specify it. So, what we need is not a patch that just removes the check, but a patch that enables a user to configure it. -- Yusuke Endoh ---------------------------------------- Bug #8370: Constants MAX_MULTIPART_LENGTH in cgi\core.rb https://bugs.ruby-lang.org/issues/8370#change-47072 * Author: Takeyuki FUJIOKA * Status: Open * Priority: Normal * Assignee: Takeyuki FUJIOKA * Category: lib * Target version: current: 2.2.0 * ruby -v: ruby 2.1.0dev (2013-05-03 trunk 40571) [x86_64-darwin12.3.0] * Backport: ---------------------------------------- =begin : Reported by Andreas Kraus via gmail. hi xibbar, I try to understand why the MAX_MULTIPART_LENGTH is a Constant and i can't change it. If i uload a Multipart file which is larger than 128 MB raise an error "too large multipart data.", but why i can't change this value to upload larger files. The Constant comes with this Change: (()) The only sense i see, is that the Author of cgialt uses max 128MB files und build in this Constant ... I would like to know why this constant is in place and how to change it's behaviour. My requirement is to upload files larger than the given limit of 128MB. regards, Andreas =end -- https://bugs.ruby-lang.org/