Skip to content

Added mime type video and missing CLI command #969

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 25, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions docs/cli/built-in-commands/sync-file-usage.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# `sync:upload-directory`

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).

## Example:

`php eecli.php sync:file-usage`
1 change: 1 addition & 0 deletions docs/cli/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ By default the CLI is located `system/ee/eecli.php` .
- [migrate:rollback - Rolls back most recent migration group](cli/built-in-commands/migrate.md)
- Sync
- [sync:conditional-fields - Sync channel entry conditional logic](cli/built-in-commands/sync-conditional-fields.md)
- [sync:file-usage - Sync files usage](cli/built-in-commands/sync-file-usage.md)
- [sync:reindex - Sync content used in search indexes](cli/built-in-commands/sync-reindex.md)
- [sync:upload-directory - Sync files in an upload directory](cli/built-in-commands/sync-upload-directory.md)
- [Update ExpressionEngine](cli/built-in-commands/update.md)
Expand Down
9 changes: 7 additions & 2 deletions docs/config/config-files.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,14 @@ A list of HTML attributes that are allowed to be passed via EE template tag para

`mimes.php`

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.
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.

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.
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.

Tip: Customizing Allowed File Types in ExpressionEngine
<div class="video-wrapper">
<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>
</div>

#### Reverse Proxy IP addresses

Expand Down