I am afraid it will not move the files. You have to do that yourself.
There should be a script to do it. Please open a ticket in google
code.

Massimo

On Aug 16, 5:24 pm, Mothmonsterman <[email protected]> wrote:
> Thank you, Massimo. Web2py rocks!
>
> I saw what you are saying in the docs as how to setup the model for
> filesystem vs. db, but what I was wondering was how one would switch
> after the app has already been deployed and files are sitting in /
> uploads. Will updating the model move whats currently in uploads/ to
> the newly defined 'myblob'?.. Or is it something that must be done
> from the start either one way or the other?.. Or maybe its something
> that could be done with a nice little bit of code?.. Thanks again.
>
> On Aug 16, 4:24 am, Massimo Di Pierro <[email protected]>
> wrote:
>
>
>
>
>
>
>
> > normally:
>
> > Field('name','upload'),...
>
> > to upload to db
>
> > Field('name','upload',uploadfield="myblob"),Field('myblob','blob',default=' 
> > '),...
>
> > or just
>
> > Field('name','upload',uploadfield="myblob"),...
>
> > as this is implicit: Field('myblob','blob',default='')
>
> > On Aug 15, 8:10 pm, Mothmonsterman <[email protected]> wrote:
>
> > > Hello,
>
> > > I read the docs and searched the posts to see if there was an easy way
> > > to migrate file system uploads to database. I could not find
> > > anything.. Please excuse me if I missed something obvious, but does
> > > anyone know of a way to accomplish this in a batch process? Thanks.
>
> > > Patrick

Reply via email to