public/wordpress/wp-content/plugins/h5p/admin/class-h5p-content-admin.php
/**
   * Handle ajax request to install library from url
   */
Handle ajax request to install library from url
Handle ajax request to install library from url
public function ajax_library_upload() {
    $token = filter_input(INPUT_GET, 'token');
    $filePath = $_FILES['h5p']['tmp_name'];
    $editor = $this->get_h5peditor_instance();
    $contentId = filter_input(INPUT_POST, 'contentId', FILTER_SANITIZE_NUMBER_INT);
    $editor->ajax->action(H5PEditorEndpoints::LIBRARY_UPLOAD, $token, $filePath, $contentId);
    exit;
  }
public function ajax_library_upload ( ) { $ token = filter_input ( INPUT_GET , 'token' ) ; $ filePath = $ _FILES [ 'h5p' ] [ 'tmp_name' ] ; $ editor = $ this -> get_h5peditor_instance ( ) ; $ contentId = filter_input ( INPUT_POST , 'contentId' , FILTER_SANITIZE_NUMBER_INT ) ; $ editor -> ajax -> action ( H5PEditorEndpoints :: LIBRARY_UPLOAD , $ token , $ filePath , $ contentId ) ; exit ; }
Handle ajax request to install library from url
Handle ajax request to install library from url