Works fine, just a comment:

curl -POST --data-binary @localfilename ....

to avoid loss of CR / LF in text files

Thank you very much.

El sábado, 15 de diciembre de 2012 20:20:11 UTC+1, Massimo Di Pierro 
escribió:
>
> auth.settings.allow_basic_login = True
> db.define_table('test',Field('storedfilename','upload'))
>
> @auth.requires_login()
> def upload():
>     return db.test.insert(storedfilename = 
> db.test.storedfilename.store(request.body, filename=request.args(0))
>
>
> curl -X POST -d @localfilename 
> http://user:pass@m127.0.0.1:8000/yourapp/default/upload/givenfilename.txt
>
>      
>
>
>
> On Saturday, 15 December 2012 05:49:08 UTC-6, Alfonso Pastor Sierra wrote:
>>
>> Hi, 
>>
>> I want upload a file to a "upload" field in a table automatically, 
>> sending the file from a bash script using wget. How can I do it?.
>>
>> Thanks
>>
>>

-- 



Reply via email to