Can you somehow log request.vars.file on upload? The issue is to determine
whether the file is there or not.
On Saturday, 20 October 2012 12:42:55 UTC-5, Richard wrote:
>
> Hi,
>
> I want to use Web2Py as much as possible. For a holiday blog I want to
> upload photo's from my iPhone using appadmin.
> From my windows PC this works file. I get a file location and a file which
> i can view.
>
> But an upload from my iPhone gives no error, a new record is created but
> without image.file which must contain a link to the upload photo.
>
> I use the easy db definition:
>
> db.define_table(
> 'loc',
> Field('location'),
> format = '%(location)s'
> )
>
> db.define_table(
> 'image',
> Field('loc', 'reference loc'),
> Field('title', unique=True),
> Field('file', 'upload'),
> format = '%(title)s'
> )
>
> Does anybody has a clu?
>
> Richard.
>
--