For the record i´m using web2py 2.9.5

Another problem i have is that the params that i send from the cloud
service are received in duplicate inside an array.

They told me that the issue must be an web2py issue.


See below my request vars output
nr and flag are an array of duplicate values.

In my other cloud service i only have this call to web2py

import time
ts=str(time.time())
and then later in the code i have this url that calls my web2py app

"recordURI":"http://myapp.pt/Emergencia/default/getmp3s?nr=
"+currentCall.callerID+"&flag="+ts,

as you can see i´m receiving the params as arrays with duplicates.

<Storage {'nr': ['08713546', '08713546'], 'flag': ['1415895584',
'1415895584'], 'filename': FieldStorage('filename',
'e15028d390655b827b33369afedb0c762722848457932802552.mp3',
'\xff\xe3H\xc4\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xe3H\xc4\x00:\xd2\xde\x84\x01C\xc0\x01\x00\x00\x00\x00\x00\x10\x88\x8e\xee\xee\xee\xee\x88\x88\x88\x88\x8e\xee\xee\xee\xee\x88\x88\x88\x88N\xe1\xc0\xc0\xc0\xc5\xbb\xe1R\x921\x18\xa4\xe7e\x0f\xfd2\xd0,\xe1\x90\xc6\x85\x1a\x0c\x02"V@
\xf2\xb7m\xcbr\xdc\xb7\xfd\xff\x8d\xc3\x90\xc3\xf8\xfe?\x8f\xe3\xf8\xfeC\x8f\xfb\xfe\xe5\xb9n[[gl\xed\x9d\xae\xc5\x00/\xe1e\x0c\x000\x00\xb8\x8e\xa9n\xcd\xce7(\xc8\x04\x00(#\x10g\x0c\xe1\xae5\xf7-\xcbw\xdf\xf7\xfd\xff\x7f\xe1\xf8r1\x18\x8cF#\x11\x88\xc4\xb27\x1b\x8d\xc6\xe9\xe9\xe9\xe9\xe9\xe5\x94\x94\x94\x94\x94\x94\x94\x94\x94\xf4\xf4\xf4\xf4\xf4\xf4\xf4\xf6\xe9))))))),S\xd3\xd3\xd3\xd3\xd3\xdb\xce\xdd%%\x80\x00\x00\x00\xf0\xf0\xf0\xf0\xc0\x00\x00\x00\x00\xf0\xf0\xf0\xf0\xc0\x00\x00\x00\x00\xf0\xf0\xf0\xf0\xc0\x00\x00\x00\x00\xf0\xf0\xf0\xf0\xc0\x00\x00\x01\t\xc3\xc3\xc3\xc3\x00\x00\x00\x00\x03\xc3\xd5\xa2\x8f\x01\x91\x84\x04\x96\xb4\xc8\xd4\xca\x8c\xc6c5\xb9\xff\xe5\xaa\x06\xb1\x17A\x81\x95F\xaa\xd9\xff\xff5lf\x87X\x1d\xfdA\x8d\xff\xe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xad\x0e\x10\\a<a\x87\x19v\xb9\x82\xf5\xecEs\x95
j\x8e\x10\x98\xf0\xab\x82\xb5\xbc>k{Z\xbb\xc2\xfaE\xbf-\xd0\x16\x9fO\x16ZG\x9e\xfd\xbb\xbc\x7f\xb8\xf20\xb8\xc5s\x85\xdea\x9f\x0b\xed\xd3.\x1b%^TG\xf3\xe5\x8a\xb9\xb4|\xbfx\xaf\x80\xfd\xfb5\xd8#\xc3\x9a\xe9\xacJ\xf1\xc1\xaa\xee\x95\xa3R\x91\x867
\x00`#\x01\n\xa4\x04\x05\x00\x8d@W\xf5\x01\x01\x01XjJ\x02&\x1a\xc0!\xda\x10\x80\x18vJb\xed\xae\xb4\xd2(\xb5Ue%\xa6\x91\x96\xda\xd98\x04\x15\xaf\xe6Z\xab{\x12G$\x8a-Nn\xfa8\xff\xe3H\xc4D-lF-\xbe\x1b\x0c\xa1\x96\xb5>\xbc\xcf\xe2BQ\xad\xff\xff\xce"\x8f\x92$X\x955V\xff\\\xd2IW``\x12_\xc9\x14r\x9c\x8a.E\x12\x89%\xfdKU<\xcc\xfe\xe4QbD\x89$\xc4\x89$\xf2\xd4\xe4\x89l\xcc\xcc\xe3\xcb$X\x04\x02\xafI\x16F\x0e$H\x96Q"[,J\xbbl\xcf\xf3\x93\'\x12$\x97j\x99E\xaa\x8b#\x06\x91"D\x89\x14q\xea\xabX\x91$\xa8\xe2[\xf2\xf0\x14R\x80\xde$%\x11\x86_\x0e\xb4!m\xa1R\xaeR\xa9\x92+\x85:\x91N\xde\xd9\x0e\x04y\xa3=bW\'O\xe4JI&\xa4O\xab\x19\x16\xd1\xa7Qm\'\xc5\tPQ\x9b&a\xde~(\xd6\x16\x99_17\xb09\xac\xa8\x93\xaae\xcaEp\xa7T4\xa8S\xc8\x94R(\xed>\x11i\xc5Z\xc3\x90\xd2
\xc2D\x13Aj\xaar\xadI\x118\xd1 B\xc8&\x89""\x81\x81E\x01\x88\x07
M\x08\xd7o\x9b\xfb;nT\x9ch(0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a\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa')}>


Any help


2014-11-13 12:46 GMT+00:00 Leonel Câmara <leonelcam...@gmail.com>:

> You did get it in request.vars it's just not called 'upload' like in my
> example, you call it 'filename'. So:
>
> models:
>
> db.define_table('myfile',
>     Field('name'),
>     Field('cloudfile', 'upload'),
> )
>
> controller:
>
> def post_file():
>     """ Controller to post files """
>     if 'filename' in request.vars:
>         db.myfile.insert(name=request.vars.filename.filename,
> cloudfile=db.myfile.cloudfile.store(request.vars.filename))
>
> --
> 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.
>

-- 
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