mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-20 16:38:22 +08:00
Merge pull request #8668 from yiijan/docs-small-fix
docs/guide/input-file-upload.md - small fixes [ci skip]
This commit is contained in:
@@ -48,7 +48,7 @@ In the code above, the `imageFile` attribute is used to keep the uploaded file i
|
||||
a `file` validation rule which uses [[yii\validators\FileValidator]] to ensure a file with extension name `png` or `jpg`
|
||||
is uploaded. The `upload()` method will perform the validation and save the uploaded file on the server.
|
||||
|
||||
The `file` validator allows you to check file extensions, size, MIME type, etc. For more details, please refer to
|
||||
The `file` validator allows you to check file extensions, size, MIME type, etc. Please refer to
|
||||
the [Core Validators](tutorial-core-validators.md#file) section for more details.
|
||||
|
||||
> Tip: If you are uploading an image, you may consider using the `image` validator instead. The `image` validator is
|
||||
|
||||
Reference in New Issue
Block a user