API Documentation for: 1.0.1
Show:

UploaderError Class

Extends Exception
Namespace: Canteen\Media

Exceptions specific to the media Uploader class Located in the namespace Canteen\Media.

Constructor

UploaderError

(
  • code
  • [data='']
)

Parameters:

  • code Int

    The error code

  • [data=''] String | Array optional

    The optional data associated with this error

Item Index

Properties

Properties

ALREADY_EXISTS

Int final static

File already exists

BAD_UPLOAD

Int final static

Upload result was unsuccessful

CANNOT_RESIZE

Int final static

Cannot resize until upload has been completed

FILE_EXT

Int final static

File extension not allowed

MAX_SIZE

Int final static

Filesize is over the server limit

MEMORY_LIMIT

Int final static

Not enough memory to complete this task

messages

Array private final static

The collection of messages

MIME_TYPE

Int final static

Mime type not allowed

NO_INPUT

Int final static

No file to upload

NOT_MOVED

Int final static

File was not moved

PERMISSION

Int final static

Change permission to writable

THUMBNAIL

Int final static

Thumbnail creation failed

UNDEFINED_EXTS

Int final static

No file extensions defined for this uploader

UNDEFINED_MIMES

Int final static

No MIME types defined for this uploader

UNKNOWN

String final static

The label for an error that is unknown or unfound in messages

UNSUCCESSFUL

Int final static

Upload was not successful

UPLOAD_DIR

Int final static

Upload directory does not exist