Hello.

Thank you for your advice. With your helpful advice, I'm studying about
page_attachment extension.


The reason why I want to store attached files in the DB is mainly migration
problem. Whenever I migrate my site to another system, it was not easy to
migrate photo files.

Secondly, I was often suffered from code problem. In many cases, filenames
are written in my country's language. Sometimes they are coded by UTF-8, but
they are often coded by EUC-KR. It causes not only page not found problem,
but also migration problem. So I would like to show attached files by urls
with key numbers, and serves with their real filenames.



On Mon, Mar 17, 2008 at 10:41 PM, Sean Cribbs <[EMAIL PROTECTED]> wrote:

> Kay,
>
> I don't understand why you would want to store them in the DB, but to
> each his own.  To do so, you will also need to create a table in the
> database according to the needs of attachment_fu, and have a field in
> the page_attachments table that serves as a key into the db_files
> table.  Find the info here:
>
> http://svn.techno-weenie.net/projects/plugins/attachment_fu/README
>
> Sean
>
> Kay Joo wrote:
> > With page_attachment extension, I am trying to store my photo files in a
> > database(mysql).
> >
> > I changed a single row of page_attachment.rb.
> >
> > The changed line is "has_attachment :storage => :db_file," while there
> was
> > :file_system in the original one.
> >
> > However, the attached files are still saved in the file system, not the
> > database.
> >
> > Help me please~.
> > _______________________________________________
> > Radiant mailing list
> > Post:   [email protected]
> > Search: http://radiantcms.org/mailing-list/search/
> > Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
> >
> >
>
> _______________________________________________
> Radiant mailing list
> Post:   [email protected]
> Search: http://radiantcms.org/mailing-list/search/
> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
>
_______________________________________________
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to