Skip to content

Commit 9d3ee67

Browse files
authoredMar 25, 2025··
Merge pull request #969 from ExpressionEngine/7.dev
Added mime type video and missing CLI command
2 parents 7640add + 0964bc2 commit 9d3ee67

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# `sync:upload-directory`
2+
3+
This command updates old file format data to the modern format and synchronizes the file usage records in the database. File usage data for a given file in the file manager can be viewed in the [File Editor](control-panel/file-manager/file-edit.md). This functionality is also available through [Utilities - File Usage](control-panel/utilities/data-operations.md#update-file-usage-information).
4+
5+
## Example:
6+
7+
`php eecli.php sync:file-usage`

‎docs/cli/intro.md

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ By default the CLI is located `system/ee/eecli.php` .
2929
- [migrate:rollback - Rolls back most recent migration group](cli/built-in-commands/migrate.md)
3030
- Sync
3131
- [sync:conditional-fields - Sync channel entry conditional logic](cli/built-in-commands/sync-conditional-fields.md)
32+
- [sync:file-usage - Sync files usage](cli/built-in-commands/sync-file-usage.md)
3233
- [sync:reindex - Sync content used in search indexes](cli/built-in-commands/sync-reindex.md)
3334
- [sync:upload-directory - Sync files in an upload directory](cli/built-in-commands/sync-upload-directory.md)
3435
- [Update ExpressionEngine](cli/built-in-commands/update.md)

‎docs/config/config-files.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,14 @@ A list of HTML attributes that are allowed to be passed via EE template tag para
3939

4040
`mimes.php`
4141

42-
This file sets the mime types that are allowed to be uploaded using the upload class. For security reasons the list is kept as small as possible. The mimes.php file in your user/config folder will override the system mimes.php entirely. If you need to upload mime types that are not in the list you can add them. If you want to disallow a mime type that is allowed by default, you can remove it from your version of the mimes.php file.
42+
This file sets the mime types that are allowed to be uploaded using the upload class. For security reasons the list is kept as small as possible. The `mimes.php` file in your `system/user/config` folder will override the system `mimes.php` entirely. If you need to upload mime types that are not in the list you can add them. If you want to disallow a mime type that is allowed by default, you can remove it from your mimes.php file and it will be disallowed.
4343

44-
The mime types are grouped by file type. These file types make up the 'Allowed File Types' options in the [upload directory](control-panel/file-manager/upload-directories.md#allowed-file-types) settings. You can add new mimes to an existing file type or create a new file type and add to that. Your new file type will be included as an option in the file upload preferrence file types.
44+
The mime types are grouped by file type. These file types make up the 'Allowed File Types' options in the [upload directory](control-panel/file-manager/upload-directories.md#allowed-file-types) settings. You can add new mimes to an existing file type or create a new file type and add to that. Your new file type will be included as an option in the file upload preferrence file types.
45+
46+
Tip: Customizing Allowed File Types in ExpressionEngine
47+
<div class="video-wrapper">
48+
<iframe src="https://www.youtube.com/embed/W6-NEmd7Urk" width="1920" height="1080" title="Customizing Allowed File Types in ExpressionEngine" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
49+
</div>
4550

4651
#### Reverse Proxy IP addresses
4752

0 commit comments

Comments
 (0)
Please sign in to comment.