What are file systems? you mean life filesonic or megaupload? On Thu, Jun 2, 2011 at 9:38 AM, Michael Pavling <[email protected]> wrote:
> On 2 June 2011 14:20, Rodrigo Ruiz <[email protected]> wrote: > > Hi, can anyone help me, I want people to be able to send me pdf's (to my > > website), and I wanna store than in a database. > > It would be no different to handling any other file (for that's what a > PDF is - just a file). > > Look at some results on Google for "Rails file upload". Gems such as > Paperclip help with this. You can validate that the files uploaded are > PDFs by looking at their mime type (or just the file extension if you > trust it). > > Personally, I'd advise against storing files in a DB - file systems do > a much better job of managing files in most cases - but the choice is > yours. > > Regards, > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

