SproutCMS

This is the code documentation for the SproutCMS project

class FileUploadException

Exception thrown when a (chunked) file upload fails

Source code (3 results)

/sprout/Controllers/FileUploadController.php   Highlighted file source

Line 18: use Sprout\Exceptions\FileUploadException;
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 337: } catch (FileUploadException $ex) {
Line 345: } catch (FileUploadException $ex) {

/sprout/Exceptions/FileUploadException.php   Highlighted file source

Line 19: class FileUploadException extends \Exception

/sprout/Helpers/FileUpload.php   Highlighted file source

Line 21: use Sprout\Exceptions\FileUploadException;
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 13 lines in 3 files were found