well, so File upload seems to be only working under mongrel. I have not tried it, but Camping crash extracting the request parameters on both CGI and FastCGI. I''m looking at rails code for inspiration, but it''s a bit outside of my knowledge..... not sure what to do with a FCGI::Stream object ..... this is what rails do for CGI, I''m not sure if it works the same for FCGI, I have not found the code yet. require actionpack-1.12.3/lib/action_controller/cgi_ext/cgi_methods.rb def query_parameters (qs = self.query_string).empty? ? {} : CGIMethods.parse_query_parameters(qs) end def request_parameters if ActionController::Base.param_parsers.has_key?(content_type) CGIMethods.parse_formatted_request_parameters(content_type, @env[''RAW_POST_DATA'']) else CGIMethods.parse_request_parameters(@cgi.params) end end regards, On 7/26/06, Jonas Pfenniger <zimba.tm at gmail.com> wrote:> > File upload is implemented in Camping. I guess you can have some > problems if you''re not running Camping+Mongrel since it wasn''t tested > very well. > > NOTE : I''ve just corrected Ext::Flash. It was buggy. > > On 26/07/06, Mathieu Jobin <mathieu at justbudget.com> wrote: > > do you know if with Camping 1.4.139 you absolutely need equipement or > > Camping can do file upload just fine? > > > > > > On 7/26/06, Jonas Pfenniger < zimba.tm at gmail.com> wrote: > > > You can read the rdoc or look at the file. I also encourage using the > > > SVN because the last release is a bit out of date. I''m now working > > > with Camping from SVN too. There is also the test and example folders > > > with some mini apps. > > > > > > Next release will happend with Camping 1.5 and have all the doc > updated. > > > > > > On 26/07/06, Mathieu Jobin <mathieu at justbudget.com> wrote: > > > > is there docs for using the Flash and FIle upload module ? I''d like > to > > start > > > > off by trying to use those. > > > > > > > > thanks > > > > > > > > -- > > > > gcc -O0 -DRUBY_EXPORT -rdynamic -Wl,-export-dynamic -L. main.o > > > > -lruby-static -ldl -lcrypt -lm -o ruby > > > > Everyone is trying their hardest to do their job but management has > set > > it > > > > up so that it''s impossible. > > > > Take the control over your money, track your expenses > > http://justbudget.com > > > > > > > > Mathieu > > > > _______________________________________________ > > > > Equipment-for-all mailing list > > > > Equipment-for-all at rubyforge.org > > > > http://rubyforge.org/mailman/listinfo/equipment-for-all > > > > > > > > > > > > > > > > > -- > > > Cheers, > > > zimbatm > > > > > > http://zimbatm.oree.ch > > > > > > > > > > > -- > > > > gcc -O0 -DRUBY_EXPORT -rdynamic -Wl,-export-dynamic -L. main.o > > -lruby-static -ldl -lcrypt -lm -o ruby > > Everyone is trying their hardest to do their job but management has set > it > > up so that it''s impossible. > > Take the control over your money, track your expenses > http://justbudget.com > > > > Mathieu > > > -- > Cheers, > zimbatm > > http://zimbatm.oree.ch >-- gcc -O0 -DRUBY_EXPORT -rdynamic -Wl,-export-dynamic -L. main.o -lruby-static -ldl -lcrypt -lm -o ruby Everyone is trying their hardest to do their job but management has set it up so that it''s impossible. Take the control over your money, track your expenses http://justbudget.com Mathieu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/camping-list/attachments/20060727/048941c5/attachment-0001.html
when I said I did not tried it... I meant mongrel. On 7/27/06, Mathieu Jobin <mathieu at justbudget.com> wrote:> > well, so File upload seems to be only working under mongrel. > I have not tried it, but Camping crash extracting the request parameters > on both CGI and FastCGI. > > I''m looking at rails code for inspiration, but it''s a bit outside of my > knowledge..... > not sure what to do with a FCGI::Stream object ..... > > this is what rails do for CGI, I''m not sure if it works the same for FCGI, > I have not found the code yet. > > require actionpack-1.12.3/lib/action_controller/cgi_ext/cgi_methods.rb > > def query_parameters > (qs = self.query_string).empty? ? {} : > CGIMethods.parse_query_parameters(qs) > end > > def request_parameters > if ActionController::Base.param_parsers.has_key? (content_type) > CGIMethods.parse_formatted_request_parameters(content_type, > @env[''RAW_POST_DATA'']) > else > CGIMethods.parse_request_parameters(@cgi.params) > end > end > > regards, > > > On 7/26/06, Jonas Pfenniger <zimba.tm at gmail.com> wrote: > > > > File upload is implemented in Camping. I guess you can have some > > problems if you''re not running Camping+Mongrel since it wasn''t tested > > very well. > > > > NOTE : I''ve just corrected Ext::Flash. It was buggy. > > > > On 26/07/06, Mathieu Jobin < mathieu at justbudget.com> wrote: > > > do you know if with Camping 1.4.139 you absolutely need equipement or > > > Camping can do file upload just fine? > > > > > > > > > On 7/26/06, Jonas Pfenniger < zimba.tm at gmail.com> wrote: > > > > You can read the rdoc or look at the file. I also encourage using > > the > > > > SVN because the last release is a bit out of date. I''m now working > > > > with Camping from SVN too. There is also the test and example > > folders > > > > with some mini apps. > > > > > > > > Next release will happend with Camping 1.5 and have all the doc > > updated. > > > > > > > > On 26/07/06, Mathieu Jobin <mathieu at justbudget.com> wrote: > > > > > is there docs for using the Flash and FIle upload module ? I''d > > like to > > > start > > > > > off by trying to use those. > > > > > > > > > > thanks > > > > > > > > > > -- > > > > > gcc -O0 -DRUBY_EXPORT -rdynamic -Wl,-export-dynamic -L. > > main.o > > > > > -lruby-static -ldl -lcrypt -lm -o ruby > > > > > Everyone is trying their hardest to do their job but management > > has set > > > it > > > > > up so that it''s impossible. > > > > > Take the control over your money, track your expenses > > > http://justbudget.com > > > > > > > > > > Mathieu > > > > > _______________________________________________ > > > > > Equipment-for-all mailing list > > > > > Equipment-for-all at rubyforge.org > > > > > http://rubyforge.org/mailman/listinfo/equipment-for-all > > > > > > > > > > > > > > > > > > > > > > -- > > > > Cheers, > > > > zimbatm > > > > > > > > http://zimbatm.oree.ch > > > > > > > > > > > > > > > > -- > > > > > > gcc -O0 -DRUBY_EXPORT -rdynamic -Wl,-export-dynamic -L. main.o > > > -lruby-static -ldl -lcrypt -lm -o ruby > > > Everyone is trying their hardest to do their job but management has > > set it > > > up so that it''s impossible. > > > Take the control over your money, track your expenses > > http://justbudget.com > > > > > > Mathieu > > > > > > -- > > Cheers, > > zimbatm > > > > http://zimbatm.oree.ch > > > > > > -- > gcc -O0 -DRUBY_EXPORT -rdynamic -Wl,-export-dynamic -L. main.o -lruby-static > -ldl -lcrypt -lm -o ruby > Everyone is trying their hardest to do their job but management has set it > up so that it''s impossible. > Take the control over your money, track your expenses > http://justbudget.com > > Mathieu >-- gcc -O0 -DRUBY_EXPORT -rdynamic -Wl,-export-dynamic -L. main.o -lruby-static -ldl -lcrypt -lm -o ruby Everyone is trying their hardest to do their job but management has set it up so that it''s impossible. Take the control over your money, track your expenses http://justbudget.com Mathieu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/camping-list/attachments/20060727/72607760/attachment.html
not done testing here but changing for l in @in into for l in (@in.is_a?(FCGI::Stream) ? @in.read : @in) ## Crash on Apache/FastCGI seems to have done it ;) I''ll keep you up to date if it works. On 7/27/06, Mathieu Jobin <mathieu at justbudget.com> wrote:> > when I said I did not tried it... I meant mongrel. > > > On 7/27/06, Mathieu Jobin <mathieu at justbudget.com> wrote: > > > > well, so File upload seems to be only working under mongrel. > > I have not tried it, but Camping crash extracting the request parameters > > on both CGI and FastCGI. > > > > I''m looking at rails code for inspiration, but it''s a bit outside of my > > knowledge..... > > not sure what to do with a FCGI::Stream object ..... > > > > this is what rails do for CGI, I''m not sure if it works the same for > > FCGI, I have not found the code yet. > > > > require actionpack-1.12.3/lib/action_controller/cgi_ext/cgi_methods.rb > > > > def query_parameters > > (qs = self.query_string).empty? ? {} : > > CGIMethods.parse_query_parameters(qs) > > end > > > > def request_parameters > > if ActionController::Base.param_parsers.has_key? (content_type) > > CGIMethods.parse_formatted_request_parameters(content_type, > > @env[''RAW_POST_DATA'']) > > else > > CGIMethods.parse_request_parameters(@cgi.params) > > end > > end > > > > regards, > > > > > > On 7/26/06, Jonas Pfenniger < zimba.tm at gmail.com> wrote: > > > > > > File upload is implemented in Camping. I guess you can have some > > > problems if you''re not running Camping+Mongrel since it wasn''t tested > > > very well. > > > > > > NOTE : I''ve just corrected Ext::Flash. It was buggy. > > > > > > On 26/07/06, Mathieu Jobin < mathieu at justbudget.com> wrote: > > > > do you know if with Camping 1.4.139 you absolutely need equipement > > > or > > > > Camping can do file upload just fine? > > > > > > > > > > > > On 7/26/06, Jonas Pfenniger < zimba.tm at gmail.com> wrote: > > > > > You can read the rdoc or look at the file. I also encourage using > > > the > > > > > SVN because the last release is a bit out of date. I''m now working > > > > > > > > with Camping from SVN too. There is also the test and example > > > folders > > > > > with some mini apps. > > > > > > > > > > Next release will happend with Camping 1.5 and have all the doc > > > updated. > > > > > > > > > > On 26/07/06, Mathieu Jobin <mathieu at justbudget.com > wrote: > > > > > > is there docs for using the Flash and FIle upload module ? I''d > > > like to > > > > start > > > > > > off by trying to use those. > > > > > > > > > > > > thanks > > > > > > > > > > > > -- > > > > > > gcc -O0 -DRUBY_EXPORT -rdynamic -Wl,-export-dynamic -L. > > > main.o > > > > > > -lruby-static -ldl -lcrypt -lm -o ruby > > > > > > Everyone is trying their hardest to do their job but management > > > has set > > > > it > > > > > > up so that it''s impossible. > > > > > > Take the control over your money, track your expenses > > > > http://justbudget.com > > > > > > > > > > > > Mathieu > > > > > > _______________________________________________ > > > > > > Equipment-for-all mailing list > > > > > > Equipment-for-all at rubyforge.org > > > > > > http://rubyforge.org/mailman/listinfo/equipment-for-all > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > Cheers, > > > > > zimbatm > > > > > > > > > > http://zimbatm.oree.ch > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > > gcc -O0 -DRUBY_EXPORT -rdynamic -Wl,-export-dynamic -L. main.o > > > > -lruby-static -ldl -lcrypt -lm -o ruby > > > > Everyone is trying their hardest to do their job but management has > > > set it > > > > up so that it''s impossible. > > > > Take the control over your money, track your expenses > > > http://justbudget.com > > > > > > > > Mathieu > > > > > > > > > -- > > > Cheers, > > > zimbatm > > > > > > http://zimbatm.oree.ch > > > > > > > > > > > -- > > gcc -O0 -DRUBY_EXPORT -rdynamic -Wl,-export-dynamic -L. main.o -lruby-static > > -ldl -lcrypt -lm -o ruby > > Everyone is trying their hardest to do their job but management has set > > it up so that it''s impossible. > > Take the control over your money, track your expenses > > http://justbudget.com > > > > Mathieu > > > > > > -- > > gcc -O0 -DRUBY_EXPORT -rdynamic -Wl,-export-dynamic -L. main.o -lruby-static > -ldl -lcrypt -lm -o ruby > Everyone is trying their hardest to do their job but management has set it > up so that it''s impossible. > Take the control over your money, track your expenses > http://justbudget.com > > Mathieu >-- gcc -O0 -DRUBY_EXPORT -rdynamic -Wl,-export-dynamic -L. main.o -lruby-static -ldl -lcrypt -lm -o ruby Everyone is trying their hardest to do their job but management has set it up so that it''s impossible. Take the control over your money, track your expenses http://justbudget.com Mathieu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/camping-list/attachments/20060727/0fe2895d/attachment.html