From 4d22c6e1dda68cfc878bfa04a2516c63d16cf699 Mon Sep 17 00:00:00 2001 From: Sebastian Lohff Date: Fri, 4 May 2012 13:26:25 +0200 Subject: [PATCH] Added message for successful uploading --- servefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/servefile b/servefile index 2f1e9d1..1b96248 100755 --- a/servefile +++ b/servefile @@ -253,7 +253,8 @@ class FilePutter(BaseHTTPServer.BaseHTTPRequestHandler): target = open(destFileName, "w") target.write(fstorage["file"].file.read(length)) target.close() - self.sendResponse(200, "OK!") + self.sendResponse(200, "OK! Thanks for uploading") + print "Received file '%s' from %s." % (destFileName, self.client_address[0]) def do_PUT(self, fromPost=False): """ Upload a file via PUT