[web2py] Re: Best place to store files derived from uploaded data

2010-01-26 Thread MikeEllis
Thanks Massimo and Thadeus. Just to clarify, the pickled object files are an internal representation created by the application for its own use, so it seems like private/ is a reasonable place to keep them. The raw uploaded data files are never altered by the application. They just need to be ava

Re: [web2py] Re: Best place to store files derived from uploaded data

2010-01-26 Thread Thadeus Burgess
Also the one thing with pickling these files is if any of the files get edited, you should perform some sort of locking since what if two people edit the same file at the same time? Just a disadvantage of using pickle in a multi-instanced environment such as web servers. But you probably already

[web2py] Re: Best place to store files derived from uploaded data

2010-01-26 Thread mdipierro
I think what matters if how the files are downloaded. If the are downloaded via the provided "download" action then they must be referenced by a database record and the names must follow the convention "table.field.uuid.extension" (so that web2py can locate the record and check authorization if an