code: def store_file(self, folder, name):
          
          path = os.path.join(folder, name)
          length = self.headers['content-length']
  
          with open(path, 'wb') as sample:
              sample.write(self.rfile.read(int(length)))
  
          return path
docs: Stores the uploaded file in the given path.