code: def do_POST(self):
          
          logging.debug("New POST request.")
  
          query = parse_qs(urlparse(self.path).query)
          sample = query['sample'][0]
          async = bool(int(query.get('async', [False])[0]))
  
          path = self.store_file(mkdtemp(), sample)
          command = query['command'][0].format(sample=path).split(' ')
  
          output = run_command(command, asynchronous=async)
  
          self.respond(output)
docs: Upload a file and execute a command.