Imagine I'm trying to start up a YouTube-style content management system (with Rails, PHP, or some other similar language or system) in which users can upload videos to my website (for others to view):
Should I store the file in a directory on the server or should I store the file in a database (or both)?
Should I do this in Ruby on Rails, PHP, or some other type of language?
Best practices?