How to upload a file via http to a local folder on my server in jython (or python)
The code below may work
os.chdir("/path/to/change/to") from urllib2 import urlopen f = urlopen("http://some.server/some/directory/some.file")
But for this, my current working directory has been changed. I want to be in the current working directory and upload the file at any path on my server.
Any help?
source share