Created
September 29, 2014 11:27
-
-
Save chozabu/571d144420be685b06b3 to your computer and use it in GitHub Desktop.
crash saver server code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class uploadCrash: | |
def POST(self): | |
i = web.input() | |
print "POST uploading crash" | |
now = str(datetime.datetime.now()) | |
namepath = "crashs/" + now+"--" + str(i.version) | |
output = open(namepath, 'wb') | |
output.write(i.crashData) | |
output.close() | |
return OK("Success!") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment