1441 |
ariadna |
1 |
# core_files (subsystem) Upgrade notes
|
|
|
2 |
|
|
|
3 |
## 5.0
|
|
|
4 |
|
|
|
5 |
### Added
|
|
|
6 |
|
|
|
7 |
- A new function `file_clear_draft_area()` has been added to delete the files in a draft area.
|
|
|
8 |
|
|
|
9 |
For more information see [MDL-72050](https://tracker.moodle.org/browse/MDL-72050)
|
|
|
10 |
- Adds a new ad-hoc task `core_files\task\asynchronous_mimetype_upgrade_task` to upgrade the mimetype of files
|
|
|
11 |
asynchronously during core upgrades. The upgradelib also comes with a new utility function
|
|
|
12 |
`upgrade_create_async_mimetype_upgrade_task` for creating said ad-hoc task.
|
|
|
13 |
|
|
|
14 |
For more information see [MDL-81437](https://tracker.moodle.org/browse/MDL-81437)
|
|
|
15 |
|
|
|
16 |
## 4.5
|
|
|
17 |
|
|
|
18 |
### Added
|
|
|
19 |
|
|
|
20 |
- 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.
|
|
|
21 |
|
|
|
22 |
For more information see [MDL-75850](https://tracker.moodle.org/browse/MDL-75850)
|
|
|
23 |
- 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.
|
|
|
24 |
|
|
|
25 |
For more information see [MDL-83245](https://tracker.moodle.org/browse/MDL-83245)
|