Verify that the temporary file specified by the user exists and has valid content, and that the original file name is acceptable This is to be used during form processing upon a POST submission.
This is the code documentation for the SproutCMS project
Search documentation |
function verify()Verify that the temporary file specified by the user exists and has valid content, and that the original file name is acceptable This is to be used during form processing upon a POST submission.
Usagestring FileUpload::verify ( string $sess_key , string $field , int $index , array $allowed_exts ); Example// Expects $_POST['avatar'][0] and $_POST['avatar_temp'][0] to both be set // Expects $_SESSION['file_uploads']['user_details']['avatar']['code'] to be set $result = FileUpload::verify('user_details', 'avatar', 0, ['jpg', 'gif', 'png']); // Result will be something like '/home/.../sprout/temp/xxxx' Arguments
Exceptions thrown
Return value
|
| Powered by Pelzini, version 0.9.0 |
Documentation is made available under the
GNU Free Documentation License 1.2. Generated: Tuesday, 29th September, 2026 at 02:15 pm |
|