How to upload file to database for example file jpeg.
on 2007-03-19 10:53
on 2007-03-19 11:27
Hi Hasana Look at acts_as_attachment. I have used it and it works great. The alternative is file_column but I struggled to get it going properly and dit not find it as intuitive as acts_as_attachment. http://technoweenie.stikipad.com/plugins/show/Acts... The default behaviour is to upload the files to a directory in the public folder of your app, and store the URI of the file in the database as a string, however, I believe you can also save the files in binary in the database... If you install rmagick you will be able to do some nice stuff with images as you upload them, like create a thumbnail version of the image aswell. Regards Ivor