[web2py] Re: batch upload of legacy files

2010-02-24 Thread mdipierro
This is now fixed in trunk. thanks. On Feb 24, 3:07 pm, Rowdy wrote: > mdipierro wrote: > > You can do it both ways. > > > If you choose to retain the original names you will have to create > > your own "download" action. > > > def mydownload(): return > > response.stream(open(os.path.join(reques

[web2py] Re: batch upload of legacy files

2010-02-24 Thread Rowdy
mdipierro wrote: You can do it both ways. If you choose to retain the original names you will have to create your own "download" action. def mydownload(): return response.stream(open(os.path.join(request.folder,'upload','/'.join(request.args)),'rb')) You lose the ability to enforce granular ac

[web2py] Re: batch upload of legacy files

2010-02-19 Thread mdipierro
You can do it both ways. If you choose to retain the original names you will have to create your own "download" action. def mydownload(): return response.stream(open(os.path.join(request.folder,'upload','/'.join(request.args)),'rb')) You lose the ability to enforce granular access control. I wo

[web2py] Re: batch upload of legacy files

2010-02-19 Thread ls1
Hi, Short answer is: use web2py :-) I've had similar issue some time ago with collection of pictures. I defined function (say 'movePictures') which iterate through all pictures in source directory (other then 'uploads') and used web2py DAL to insert them into database (and uploads directory) and