On Tuesday, September 26, 2017 at 5:53:30 AM UTC-4, Dave S wrote:
>
>
>
> On Monday, September 25, 2017 at 11:03:59 PM UTC-7, Rudy wrote:
>>
>> Hi i am working to build a multi-tenant application which has a company 
>> table which stores logo and other data. I defined a company table, added 
>> extra fields in auth_user and created an action (simplified version) like 
>> below. web2py uploaded the logo image file under 
>> myapp/uploads/company.logo/af/company.logo.afxxxxxxxx.png, but according to 
>> the document(applications/test/uploads/person.image.XXXXX.jpg), I should 
>> not have had the company.log/af directories, could anyone explain why?
>>
>
> Because you set "uploadseparate"?
>

Yes, it is because of uploadseparate, which is documented here: 
http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#Field-constructor.
 
The subfolders have the form /tablename.fieldname/[first 2 letters of UUID 
from fielname].

Anthony

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to