Classier solution for file uploads for Rails, Sinatra and other Ruby web frameworks