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:[email protected]: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