Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-22237

Design way to save and retrieve file for backup with file API

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Critical Critical
    • None
    • 2.0
    • Hub
    • None
    • MOODLE_20_STABLE
    • Difficult

      I tried to save a backup in the system context with fileaera='hub_backup'. However I discovered than I can't do that. The file API doesn't let me retrieve a "system context" fileinfo if the fileaera is not null.

      get_file_info_system()
      :
      if (is_null($filearea)) {
                  return new file_info_system($this);
              }
              //TODO: question files browsing
       
              return null;

      I need to save a file in system context because the context cannot be course/user/module. These are the only available context.

            jerome Jérôme Mouneyrac
            jerome Jérôme Mouneyrac
            Nobody Nobody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.