Clearly something is not working as intended. There are two cases here:
1) the blob is saved in the same table as the unload field:
db.define_table('table1',
Field('image', 'upload'),
)
In this case the blob field is created automatically.
2) the blob is created in a separate table:
db.define_table('blobs',
Field('image', 'upload'),
)
db.define_table('table1',
Field('image', 'upload',uploadfield=db.blobs.image),
)
In this case the blobs table has an automatic blob field and table1.image
point there.
Anyway, looks like none of these options is working on GAE. I think 2) got
broken long ago and nobody noticed because nobody uses it.
On Thursday, 7 February 2013 10:48:33 UTC-6, Alan Etkin wrote:
>
> >> Field('image', 'upload'),
>
> Why two upload fields? Shouldn't the first table have a blob type field?
>
--
---
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.