[Rails] Re: Resizing images and creating thumbnails

Rodrigo Alvarez Fernández papipo at gmail.com
Sun Mar 5 23:35:47 GMT 2006


On 3/5/06, g0nzo <g0nzo at o2.pl> wrote:
>
> Thanks!
>
> I took a (very) quick look on file_column plugin and got few questions:
> Does it keep the file or just the filename in the database?


the filename.

Can i change the name of uploaded file before saving it?


Look at file_column documentation and source code, since i don't remember if
you can change the filename.

BTW. Generally, is it better to save the file to the database or just
> store there its name and the file itself on the disk?


It seems that file systems are good at storing files ;-).
Your web server can serve static content as images/files in general faster
if they are stored on the disk.

--
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Rails mailing list
> Rails at lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060305/0751b069/attachment.html


More information about the Rails mailing list