Neuron-PHP

UploadConfig
in package

FinalYes

Upload configuration constants

Table of Contents

Constants

ALLOWED_DOCUMENT_FORMATS  = ['pdf', 'doc', 'docx', 'xls', 'xlsx']
Allowed document formats
ALLOWED_IMAGE_FORMATS  = ['jpg', 'jpeg', 'png', 'gif', 'webp']
Allowed image formats
BYTES_PER_MB  = 1048576
Bytes per megabyte (for conversion)
MAX_FILE_SIZE_10MB  = 10485760
10 MB in bytes
MAX_FILE_SIZE_20MB  = 20971520
20 MB in bytes
MAX_FILE_SIZE_5MB  = 5242880
5 MB in bytes

Methods

__construct()  : mixed

Constants

ALLOWED_DOCUMENT_FORMATS

Allowed document formats

public mixed ALLOWED_DOCUMENT_FORMATS = ['pdf', 'doc', 'docx', 'xls', 'xlsx']

ALLOWED_IMAGE_FORMATS

Allowed image formats

public mixed ALLOWED_IMAGE_FORMATS = ['jpg', 'jpeg', 'png', 'gif', 'webp']

BYTES_PER_MB

Bytes per megabyte (for conversion)

public mixed BYTES_PER_MB = 1048576

MAX_FILE_SIZE_10MB

10 MB in bytes

public mixed MAX_FILE_SIZE_10MB = 10485760

MAX_FILE_SIZE_20MB

20 MB in bytes

public mixed MAX_FILE_SIZE_20MB = 20971520

MAX_FILE_SIZE_5MB

5 MB in bytes

public mixed MAX_FILE_SIZE_5MB = 5242880

Methods


        
On this page

Search results