1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-12 23:10:51 +00:00

upload test: Display filename.

This commit is contained in:
Witold Filipczyk 2008-05-03 12:08:54 +02:00 committed by Witold Filipczyk
parent 43036aec73
commit 0b2edbd33a

View File

@ -2,7 +2,7 @@
import md5
import cgi
print "Content-Type: text/plain\r\n\r\n"
print "Content-Type: text/plain\r\n"
form = cgi.FieldStorage()
if form.has_key("file"):
plik = form["file"]
@ -16,5 +16,6 @@ if form.has_key("file"):
length += len(data)
dig.update(data)
print "Filename = " + plik.filename
print "Size = %d" % length
print "MD5=" + dig.hexdigest()
print "MD5 = " + dig.hexdigest()