mirror of
https://github.com/Respect/Validation.git
synced 2024-05-29 11:52:34 +02:00
ff253c78b3
The PSR-7 has two interfaces that allow us to validate them as files. This commit will allow some rules to validate those interfaces. Co-authored-by: Henrique Moody <henriquemoody@gmail.com> Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
36 lines
605 B
Markdown
36 lines
605 B
Markdown
# Uploaded
|
|
|
|
- `Uploaded()`
|
|
|
|
Validates if the given data is a file that was uploaded via HTTP POST.
|
|
|
|
```php
|
|
v::uploaded()->validate('/path/of/an/uploaded/file'); // true
|
|
```
|
|
|
|
## Categorization
|
|
|
|
- File system
|
|
|
|
## Changelog
|
|
|
|
Version | Description
|
|
--------|-------------
|
|
2.1.0 | Add PSR-7 support
|
|
0.5.0 | Created
|
|
|
|
***
|
|
See also:
|
|
|
|
- [Directory](Directory.md)
|
|
- [Executable](Executable.md)
|
|
- [Exists](Exists.md)
|
|
- [Extension](Extension.md)
|
|
- [File](File.md)
|
|
- [Image](Image.md)
|
|
- [Mimetype](Mimetype.md)
|
|
- [Readable](Readable.md)
|
|
- [Size](Size.md)
|
|
- [SymbolicLink](SymbolicLink.md)
|
|
- [Writable](Writable.md)
|