public/wordpress/wp-content/plugins/h5p/admin/class-h5p-content-admin.php
/**
   * Handle file uploads through AJAX.
   *
   * @since 1.1.0
   */
Handle file uploads through AJAX.
Handle file uploads through AJAX .
public function ajax_files() {
    $token = filter_input(INPUT_GET, 'token', FILTER_SANITIZE_STRING);
    $contentId = filter_input(INPUT_POST, 'contentId', FILTER_SANITIZE_NUMBER_INT);
    $editor = $this->get_h5peditor_instance();
    $editor->ajax->action(H5PEditorEndpoints::FILES, $token, $contentId);
    exit;
  }
public function ajax_files ( ) { $ token = filter_input ( INPUT_GET , 'token' , FILTER_SANITIZE_STRING ) ; $ contentId = filter_input ( INPUT_POST , 'contentId' , FILTER_SANITIZE_NUMBER_INT ) ; $ editor = $ this -> get_h5peditor_instance ( ) ; $ editor -> ajax -> action ( H5PEditorEndpoints :: FILES , $ token , $ contentId ) ; exit ; }
Handle file uploads through AJAX.
Handle file uploads through AJAX .