In the current version of Camping, we use Rack. Rack has a slightly different upload system.

To read the contents of an uploaded file, where the upload was done using <input type="file" name="upload"> you must now do:

        input.upload[:tempfile].read

This also applies to file uploads done using Adobe Flash. :)

—
Jenna

On 02/04/2009, at 4:22 AM, in-seok hwang wrote:

hi all!

i can't speak english well..

i want know that file upload...

Search has a lot of time.

i can find just one Example

this link..

http://www.oreillynet.com/ruby/blog/2007/01/the_joy_of_rolling_your_own_wi_1.html

And it was typed.

but,  error occurs.

error code(Fold) is...

Camping Problem!

Conf::Controllers::Upload.POST

NoMethodError undefined method `Tempfile' for "glasses.pdf":String:

conf_mongrel.rb:224:in `post'
(eval):27:in `send'
(eval):27:in `service'
(eval):46:in `run'
/usr/local/lib/site_ruby/1.8/mongrel/camping.rb:53:in `process'
/usr/local/lib/site_ruby/1.8/mongrel/camping.rb:52:in `synchronize'
/usr/local/lib/site_ruby/1.8/mongrel/camping.rb:52:in `process'
/usr/local/lib/site_ruby/1.8/mongrel.rb:159:in `process_client'

why  can't find method?

my code has this line
require 'tempfile'

i can't understand....

and second question is ....

What is the way typical file upload in camping?

i want example code....

Curious does not sleep.

plz teach me.

thank you for reading my article..

have a nice day...


_______________________________________________
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

_______________________________________________
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

Reply via email to