docs: def resources():
      """Upload a new resource for an individual."""
      ind_id = request.form['ind_id']
  
      upload_dir = os.path.abspath(app.config['UPLOAD_DIR'])
      req_file = request.files['file']
      filename = secure_filename(req_file.filename)
      file_path = os.path.join(upload_dir, filename)
      name = request.form['name'] or filename
      req_file.save(file_path)
  
      ind_obj = app.db.individual(ind_id)
      app.db.add_resource(name, file_path, ind_obj)
      return redirect(request.referrer)