Hello, I am searching and searching and searching and ... Still haven't found the solution.
Basicly, I want to upload a file to my http server. The user shouldn't have to do anything for this, so a userform on my webpage is a no-go. For just text, I managed to do it with a form, but fill it in automaticly through the code. Like: Clientside: form = urllib.urlencode([("text", "Some example text")]) opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(None)) opener.open(urllib2.Request(url, None, USER_AGENT), form) Serverside: form = cgi.FieldStorage() text = form['text'].value Now I can use 'text' on the server, for mailing etc. But I really can't manage to do this with a file. Anyone can give me a helping hand here? Cheers, Timo
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor