If you benefit from web2py hope you feel encouraged to pay it forward by contributing back to society in whatever form you choose!

Is there a way for web2py app to upload file to www.copy.com instead of the server local file system ?

Answers (1)

Comments (1)

  • Login to post



  • 0
    rajesh-patidar 5 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

Related content


Hosting graciously provided by:
Python Anywhere