Re: hi! plz teach me! about file upload

2009-04-20 Thread John Beppu
Something like this should work for the old version of Camping: class Upload R '/upload' def get render :upload end def post upload = @input.upload filename = File.basename(upload.filename) puts @input.upload[:tempfile].path puts filename

hi! plz teach me! about file upload

2009-04-01 Thread in-seok hwang
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

Re: hi! plz teach me! about file upload

2009-04-01 Thread Jenna Fox
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

Re: hi! plz teach me! about file upload

2009-04-01 Thread in-seok hwang
oh... sorry. i can't use current version. I had a lot of code writing. i used 1.5.180 camping version. when i upgrade to the latest version is a lot of errors. but, I want to use the latest version. Anyway, how do upload file in 1.5.180 2009/4/2 Jenna Fox bluebe...@creativepony.com In