Back to Moodle

core_files (subsystem) Upgrade notes

public/files/UPGRADING.md

5.2.01.8 KB
Original Source

core_files (subsystem) Upgrade notes

5.2

Added

  • A new method called removeopt() has been created in the curl class to allow users to remove options previously set with setopt().

    For more information see MDL-87822

  • User can pass 'CURLOPT_USERPWD' => false to the $options array for the put() method of curl to remove the CURLOPT_USERPWD option from the request.

    For more information see MDL-87822

Removed

  • The following methods have been removed from public/lib/filestorage/file_storage.php:

    • \file_storage::content_exists()
    • \file_storage::try_content_recovery()

    For more information see MDL-87426

5.0

Added

  • A new function file_clear_draft_area() has been added to delete the files in a draft area.

    For more information see MDL-72050

  • Adds a new ad-hoc task core_files\task\asynchronous_mimetype_upgrade_task to upgrade the mimetype of files asynchronously during core upgrades. The upgradelib also comes with a new utility function upgrade_create_async_mimetype_upgrade_task for creating said ad-hoc task.

    For more information see MDL-81437

4.5

Added

  • A new hook, \core_files\hook\after_file_created, has been created to allow the inspection of files after they have been saved in the filesystem.

    For more information see MDL-75850

  • A new hook, \core_files\hook\before_file_created, has been created to allow modification of a file immediately before it is stored in the file system.

    For more information see MDL-83245