Just curious why you want to do this without using any database or models or gems?
At any rate, check out this tutorial below. It uses a model, but you can copy the code from the DataFile class to accomplish what you are trying to do. http://www.tutorialspoint.com/ruby-on-rails/rails-file-uploading.htm By the way, that tutorial is the first result in Google when you search for "file upload rails" Google is usually a good place to start for questions like this. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/ByZdffVrpPIJ. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.