Skip to content

Instantly share code, notes, and snippets.

@chozabu
Created September 29, 2014 11:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chozabu/571d144420be685b06b3 to your computer and use it in GitHub Desktop.
Save chozabu/571d144420be685b06b3 to your computer and use it in GitHub Desktop.
crash saver server code
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