On 12/27/05, Fab Psycho <psychorosco@hotmail.com>
wrote:> Hi,
>
> I'm using filecolumn to upload a file to mysql blob :
> _form.rhtml : file_column_field "entry", "attach"
> model (rb file) : file_column :attach
>
> How can I update controller create function to insert file in database ?
> redefine model save function ? Someone has a sample source ?
>
> Regards,
> Fabian
>
>
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
Hi,
file_column is designed to store the file in the filesystem, not in
the database. What gets stored in the database is the path of the
file. That said, if you want to store the actual file in the
database, you should look at the RoR wiki for advice, and roll your
own solution.
--
Kyle Maxwell
Chief Technologist
E Factor Media // FN Interactive
kyle@efactormedia.com
1-866-263-3261
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails