No the uploadfolder can have only one value c:/web2py/myapp/uploads or d:/extrastorage/myapp/uploads...
uploadseparate can have only True or False. ... uploadfolder='c:/web2py/myapp/uploads', uploadseparate=True ... than you have c:/web2py/myapp/uploads/<tablename>.<fieldname>/<uuidkey[:2]>/... On jún. 13, 17:33, weheh <richard_gor...@verizon.net> wrote: > Aha! So then could you write the following: > > import random > Field('filename','upload', > uploadfolder=['c:/web2py/myapp/uploads','d:/extrastorage/myapp/ > uploads'][random.randint(0,1)], > uploadseparate=2, > ) > > and expect the files to be uniformly distributed across 2 filesystems? > That (or its equivalent) would be awesome. > > On Jun 12, 4:20 pm, szimszon <szims...@gmail.com> wrote: > > > No because you can specify the location of uploaded material so it can > > be on any filesystem, and uploadseparate work under uploadfolder to... > > > On jún. 12, 21:57, weheh <richard_gor...@verizon.net> wrote: > > > > One more question -- doesn't this eliminate the need for > > > Field(...uploadfolder=pathname,...)? I suppose keeping the > > > uploadfolder parameter is a good thing to keep for anyone who wants to > > > use it for their own special purpose. But if the issue is about > > > storing a gazillion upload files for efficient retrieval, then this > > > new method does it for you automatically without having to resort to > > > uploadfolder=pathname. Right?- Hide quoted text - > > > - Show quoted text - > >