[#39464] Re [ruby-dev:23297] 大文字・小文字の区別がDOSISHかどうかで変わる、パス名マッチ関数の提案 — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp>
山本です。
25 messages
2004/04/01
[#39608] Re: Re [ruby-dev:23297] 大文字・小文字の区別がDOSISHかどうかで変わる、パス名マッチ関数の提案
— pegacorn@...
2004/05/02
遅い反応&File.fnmatchは使った事ない&ruby-devの方では
[#39609] Re: Re [ruby-dev:23297] 大文字・小文字の区別がDOSISHかどうかで変わる、パス名マッチ関数の提案
— pegacorn@...
2004/05/02
File.fnmatch(と Dir.glob)をちょっと使ってみたのですが、
[#39610] Re: Re [ruby-dev:23297] 大文字・小文字の区別がDOSISHかどうかで変わる、パス名マッチ関数の提案
— "H.Yamamoto" <ocean@...2.ccsnet.ne.jp>
2004/05/02
山本です。
[#39611] Re: Re [ruby-dev:23297] 大文字・小文字の区別がDOSISHかどうかで変わる、パス名マッチ関数の提案
— matz@... (Yukihiro Matsumoto)
2004/05/02
まつもと ゆきひろです
[#39613] Re: Re [ruby-dev:23297] 大文字・小文字の区別がDOSISHかどうかで変わる、パス名マッチ関数の提案
— pegacorn@...
2004/05/02
From: matz@ruby-lang.org (Yukihiro Matsumoto)
[#39616] Re: Re [ruby-dev:23297] 大文字・小文字の区別がDOSISHかどうかで変わる、パス名マッチ関数の提案
— matz@... (Yukihiro Matsumoto)
2004/05/02
まつもと ゆきひろです
[#39620] Re: Re [ruby-dev:23297] 大文字・小文字の区別がDOSISHかどうかで変わる、パス名マッチ関数の提案
— pegacorn@...
2004/05/03
From: matz@ruby-lang.org (Yukihiro Matsumoto)
[#39621] Re: Re [ruby-dev:23297] 大文字・小文字の区別がDOSISHかどうかで変わる、パス名マッチ関数の提案
— matz@... (Yukihiro Matsumoto)
2004/05/03
まつもと ゆきひろです
[#39622] Re: Re [ruby-dev:23297] 大文字・小文字の区別がDOSISHかどうかで変わる、パス名マッチ関数の提案
— pegacorn@...
2004/05/03
From: matz@ruby-lang.org (Yukihiro Matsumoto)
[#39623] Re: Re [ruby-dev:23297] 大文字・小文字の区別がDOSISHかどうかで変わる、パス名マッチ関数の提案
— matz@... (Yukihiro Matsumoto)
2004/05/03
まつもと ゆきひろです
[#39624] Re: Re [ruby-dev:23297] 大文字・小文字の区別がDOSISHかどうかで変わる、パス名マッチ関数の提案
— pegacorn@...
2004/05/03
From: matz@ruby-lang.org (Yukihiro Matsumoto)
[#39485] RAA trouble and maintenance — "NAKAMURA, Hiroshi" <nakahiro@...>
なひです。
5 messages
2004/04/04
[#39513] リファレンスマニュアルを使うには? — "yokoyama" <yokoyama@...0038.net>
yokoyamaともうします。
4 messages
2004/04/08
[#39542] open-uri takes wrong value for Host with proxy — Atsushi SHICHI <ats7@...>
しちと申します。
5 messages
2004/04/12
[#39550] NEW trial (RC?) version of Ruby/Tk — Hidetoshi NAGAI <nagai@...>
永井@知能.九工大です.
10 messages
2004/04/14
[#39566] Re: int/int in Ruby2? — gldwssr@...
I am making elliptic curve crypto.
1 message
2004/04/15
[#39570] RC version of the next Ruby/Tk — Hidetoshi NAGAI <nagai@...>
永井@知能.九工大です.
5 messages
2004/04/18
[#39576] [ANN] nadoka 0.1.0 — SASADA Koichi <ko1@...>
ささだです。
6 messages
2004/04/20
[#39578] [ANN] Algorithm-Diff 0.1 released — MoonWolf <moonwolf@...>
GPLではないdiffライブラリとしてAlgorithm-DiffというのをRAAにリリースしました。
8 messages
2004/04/21
[#39579] Re: 気象庁の... Re: uriってどう使うんでしょうか — Hideyuki Oya <h_oya@...>
oyaです。
10 messages
2004/04/22
[#39588] ruby-ver? 配列のランダム化 — shintani kiyonori <k_shin@...>
毎度、初歩的な質問で申し訳ありません。新谷と申します。
11 messages
2004/04/25
[#39590] Re: ruby-ver? 配列のランダム化
— "H.Yamamoto" <ocean@...2.ccsnet.ne.jp>
2004/04/25
山本です。
[ruby-list:39504] 大きいサイズのファイルをアップロードするとき
From:
katata@...
Date:
2004-04-07 08:07:26 UTC
List:
ruby-list #39504
こんにちはTa3と申します。
[ruby-list:39434]の件を止めてしまっててすみませんが、別件の質問をさせて
ください。
以下の環境、
Windows2000 Professional
Ruby 1.8.1 mswin版
Apache 2.0.49 Windowsバイナリ版
でブラウザからファイルをアップロードするCGIを作成しました。
約10KB未満のファイルは問題なくできるのですが、それより大きいファイルにな
るとInternal Server Errorになってしまいます。
このときのApacheのエラーログは
[Wed Apr 07 16:51:15 2004] [error] [client 127.0.0.1] Premature end of
script headers: upload.rbx, referer:
http://localhost/cgi-bin/teishutsu/top.rbx?class=1rite
[Wed Apr 07 16:51:15 2004] [error] [client 127.0.0.1]
C:/ruby/lib/ruby/1.8/cgi.rb:1039:in `read_multipart': uninitialized
constant CGI::QueryExtension::StringIO (NameError)\r, referer:
http://localhost/cgi-bin/teishutsu/top.rbx?class=1rite
[Wed Apr 07 16:51:15 2004] [error] [client 127.0.0.1] \tfrom
C:/ruby/lib/ruby/1.8/cgi.rb:987:in `loop'\r, referer:
http://localhost/cgi-bin/teishutsu/top.rbx?class=1rite
[Wed Apr 07 16:51:15 2004] [error] [client 127.0.0.1] \tfrom
C:/ruby/lib/ruby/1.8/cgi.rb:1077:in `read_multipart'\r, referer:
http://localhost/cgi-bin/teishutsu/top.rbx?class=1rite
[Wed Apr 07 16:51:15 2004] [error] [client 127.0.0.1] \tfrom
C:/ruby/lib/ruby/1.8/cgi.rb:1117:in `initialize_query'\r, referer:
http://localhost/cgi-bin/teishutsu/top.rbx?class=1rite
[Wed Apr 07 16:51:15 2004] [error] [client 127.0.0.1] \tfrom
C:/ruby/lib/ruby/1.8/cgi.rb:2300:in `initialize'\r, referer:
http://localhost/cgi-bin/teishutsu/top.rbx?class=1rite
[Wed Apr 07 16:51:15 2004] [error] [client 127.0.0.1] \tfrom C:/Program
Files/Apache Group/Apache2/cgi-bin/teishutsu/upload.rbx:8:in `new'\r,
referer: http://localhost/cgi-bin/teishutsu/top.rbx?class=1rite
[Wed Apr 07 16:51:16 2004] [error] [client 127.0.0.1] \tfrom C:/Program
Files/Apache Group/Apache2/cgi-bin/teishutsu/upload.rbx:8\r, referer:
http://localhost/cgi-bin/teishutsu/top.rbx?class=1rite
と出ました。このエラーログの
C:/ruby/lib/ruby/1.8/cgi.rb:1039:in `read_multipart': uninitialized
constant CGI::QueryExtension::StringIO (NameError)
という部分に注目していろいろと試行錯誤したところ、cgi.rbの1039行目の
#{(body.class == StringIO)? "" : body.path.dump}
を
#{(body.class.to_s == "StringIO")? "" : body.path.dump}
と勝手に変えたら大きいサイズのファイルでも無事アップロードできました。
こんなことをしてよかったのでしょうか?
もしお前のプログラムを見せろという場合は、今のプログラムはごちゃごちゃし
てるので、テストサンプルを作成してまた送ります。
よろしくおねがいします。