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 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
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
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
4 matches
Mail list logo