2006-09-22: urllib2_file-0.2.0.py
- UTF-8 filenames are now allowed (Eli Golovinsky)
- File object is no more mandatory, Object only needs to have seek() read() attributes (Eli Golovinsky)
2006-09-07: urllib2_file-0.1.0.py
- upload is does using chunks (Adam Ambrose)
import urllib2_file
import urllib2
data = {'name': 'value',
'file': open('/etc/services')
}
data2 = [ 'the bus, 'felt near Coroico',
'userfile', open('/home/foo/bar.png')
]
urllib2.urlopen('http://site.com/script_upload.php', data)
Example: upload a file to Gallery (http://gallery.menalto.com)
test.py
$Id: urllib2_multipart.html,v 1.7 2006-09-22 09:53:02 dakol Exp $