mirror of
https://github.com/rkd77/elinks.git
synced 2024-09-06 23:44:43 -04:00
upload test: Display filename.
This commit is contained in:
parent
43036aec73
commit
0b2edbd33a
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user