If you benefit from web2py hope you feel encouraged to pay it forward by contributing back to society in whatever form you choose!
You can upload file
>>> url = 'http://httpbin.org/post'
>>> files = {'file': open('report.xls', 'rb')}
>>> r = requests.post(url, files=files)
>>> r.text
Is there a way for web2py app to upload file to www.copy.com instead of the server local file system ?
0
rajesh-patidar 10 years ago
You can upload file
>>> url = 'http://httpbin.org/post'
>>> files = {'file': open('report.xls', 'rb')}
>>> r = requests.post(url, files=files)
>>> r.text