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

/sprout/config/routes.php Highlighted file source
Line 144: $config['file_upload/upload_begin'] = 'Sprout\\Controllers\\FileUploadController/uploadBegin';
Line 145: $config['file_upload/upload_chunk'] = 'Sprout\\Controllers\\FileUploadController/uploadChunk';
Line 146: $config['file_upload/upload_done'] = 'Sprout\\Controllers\\FileUploadController/uploadDone';
Line 147: $config['file_upload/upload_form'] = 'Sprout\\Controllers\\FileUploadController/uploadForm';
Line 148: $config['file_upload/upload_cancel'] = 'Sprout\\Controllers\\FileUploadController/uploadCancel';

/sprout/Controllers/Admin/FileAdminController.php Highlighted file source
Line 35: use Sprout\Helpers\FileUpload;
Line 300: if (!FileUpload::checkFilename($_GET['file']['name'])) {
Line 389: if (!FileUpload::checkFilename($_POST['orig_name'])) {
Line 515: $ctlr = new \Sprout\Controllers\FileUploadController();
Line 597: $temp_file = FileUpload::verify('admin_quick_upload', 'file', 0, $allowed_exts);
Line 609: if (!FileUpload::checkFilename($filename)) {

/sprout/Controllers/FileUploadController.php Highlighted file source
Line 18: use Sprout\Exceptions\FileUploadException;
Line 22: use Sprout\Helpers\FileUpload;
Line 31: class FileUploadController extends Controller
Line 153: * Perform additional checks (beyond the checks already in {@see FileUploadController::uploadChunk}) on an uploaded chunk.
Line 176: * @throws FileUploadException if the file is smaller than the allowed maximum for the field.
Line 186: * @throws FileUploadException if the file extension is matches the requirements for the field.
Line 194: throw new FileUploadException("File type doesn't match extension");
Line 330: if (!FileUpload::checkFilename($_GET['file']['name'])) {
Line 337: } catch (FileUploadException $ex) {
Line 345: } catch (FileUploadException $ex) {

/sprout/Helpers/FileUpload.php Highlighted file source
Line 21: use Sprout\Exceptions\FileUploadException;
Line 26: * i.e. where chunked upload data has been stitched together by {@see FileUploadController}
Line 28: class FileUpload
Line 38: * $result = FileUpload::verify('user_details', 'avatar', 0, ['jpg', 'gif', 'png']);
Line 51: * @throws FileUploadException If there was an issue the uploader should know about, e.g. the file extension isn't permitted.
Line 80: throw new FileUploadException('Upload session lost');
Line 85: throw new FileUploadException("This type of file cannot be uploaded for security reasons");
Line 90: throw new FileUploadException("Invalid file extension");
Line 94: throw new FileUploadException("File content doesn't match extension");
A total of 37 lines in 8 files were found