another thing i dont know how to do.

i have my
 db.myfile.insert(name=request.post_vars.filename.filename,
cloudfile=db.myfile.cloudfile.
store(request.post_vars.filename),key=timestamp)

i added also a timestamp param in the insert to later get it from the cloud
service

How to i code the retrieving of the file as the cloud service does not know
the name that web2py gave to the file. only knows the timestamp key

Thank u



2014-11-13 23:46 GMT+00:00 António Ramos <ramstei...@gmail.com>:

> Thank you
> I´ll do that!
>
> 2014-11-13 23:23 GMT+00:00 Niphlod <niph...@gmail.com>:
>
>> BTW: take care to protect that function with some kind of restriction
>> (usually ip-based). If an attacker knows the endpoint it'll flood your app
>> with "fake" attachments as soon as he can :-P
>>
>> On Thursday, November 13, 2014 6:30:55 PM UTC+1, Ramos wrote:
>>>
>>> Very informative.
>>> I´m more than satisfied.
>>>
>>>
>>> Thank u
>>>
>>> António
>>>
>>>
>>> 2014-11-13 17:23 GMT+00:00 Leonel Câmara <leonel...@gmail.com>:
>>>
>>>> The cloud service is calling the controller putting the same vars in
>>>> get and post variables (no idea why they do that), so request.vars makes a
>>>> list of the values it gets for the same name as request.vars has both get
>>>> and post vars.
>>>>
>>>> --
>>>> 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+un...@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.
>>
>
>

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