The request.vars.file turn out to indicate that a file is uploaded from my 
iPhone. Issue solved.

Doing some tests showed me a point to be aware of. Showing the images in a 
HTML page can give  a difference between windows browser (Firefox and 
Chrome) and my iPhone. It turns out that the iPhone browser take into 
account to top and bottom of the picture, Windows browsers do not by 
default. Interesting to know and maybe to try to deal with.

Richard


On Sunday, October 21, 2012 12:37:26 AM UTC+2, Massimo Di Pierro wrote:
>
> 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.
>>
>

-- 



Reply via email to