Used for managing backend processing of fields which have had data submitted via chunked file uploads, i.e. where chunked upload data has been stitched together by FileUploadController
This is the code documentation for the SproutCMS project
Search documentation |
class FileUploadUsed for managing backend processing of fields which have had data submitted via chunked file uploads, i.e. where chunked upload data has been stitched together by FileUploadController
Extending this class<?php
/**
* New class description goes here
*
* @author Your Name, 2026-09-12
**/
class NewClassName extends FileUpload {
/**
* 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.
**/
public function verify (string $sess_key, string $field, int $index, array $allowed_exts) {
// Method code goes here
}
/**
* Check a given filename is allowed to be uploaded - blocks PHP files etc
**/
public function checkFilename (string $filename) {
// Method code goes here
}
/**
* Generates a fake upload, including a session entry and a temp symlink, from an existing file on disk.
*
* This allows reuse of existing uploaded files on Form::chunkedUpload fields which support multiple files
**/
public function generateFromDisk (string $filename, string $session_key, string $field_name) {
// Method code goes here
}
}
?>
|
| Powered by Pelzini, version 0.9.0 |
Documentation is made available under the
GNU Free Documentation License 1.2. Generated: Wednesday, 5th August, 2026 at 03:31 pm |
|