uploadng images(needy)

thanq for suggestions........... but im using fileutils and im giving user to upload only one image............ so for that im using filutils

in app..i wrote the code as

#File.open("/public/images/#{self.id}","wb") # { |f| f.write(params(register['photo-url']).read) }

this code is writing the file to public folder but it's content is not reading.......... it's showing 0bytes in that image... plzzzz help me very very urgent                                                  md anas

thanq for suggestions........... but im using fileutils and im giving user to upload only one image............ so for that im using filutils

in app..i wrote the code as

#File.open("/public/images/#{self.id}","wb") # { |f| f.write(params(register['photo-url']).read) }

Well I don't know what your the name of your form parameters are, but
that looks very wrong. It's more likely to be something like params[...]

Fred