ClientSideUploader
abstract class ClientSideUploader (View source)
Constants
protected CONFIGKEY_PARALLELUPLOADS |
|
protected CONFIGKEY_CHUNK_ENABLED |
|
protected CONFIGKEY_CHUNK_SIZE |
|
Properties
protected Repository | $config | ||
protected BitmapFormat | $bitmapFormat | ||
protected Number | $numberService |
Methods
Can big images be resized on the client side before they are uploaded to the server?
Get the maximum time (in seconds) before PHP aborts uploads.
Get the number of parallel uploads.
Set the number of parallel uploads.
Should the client send files in chunks if they exceed a configured size?
Should the client send files in chunks if they exceed a configured size?
Get the size of the uploaded file chunks (in bytes), by considering both the configured value and the PHP settings.
Get the configured size (in bytes) of the uploaded file chunks.
Set the configured size (in bytes) of the uploaded file chunks.
Get the maximim size (in bytes) allowed by PHP for a single uploaded file.
Details
__construct(Repository $config, BitmapFormat $bitmapFormat, Number $numberService)
No description
abstract bool
supportClientSizeImageResizing()
Can big images be resized on the client side before they are uploaded to the server?
int
getTimeout()
Get the maximum time (in seconds) before PHP aborts uploads.
int
getParallelUploads()
Get the number of parallel uploads.
ClientSideUploader
setParallelUploads(int $value)
Set the number of parallel uploads.
bool
isChunkingEnabled()
Should the client send files in chunks if they exceed a configured size?
ClientSideUploader
setChunkingEnabled(bool $value)
Should the client send files in chunks if they exceed a configured size?
int
getChunkSize()
Get the size of the uploaded file chunks (in bytes), by considering both the configured value and the PHP settings.
int|null
getConfiguredChunkSize()
Get the configured size (in bytes) of the uploaded file chunks.
ClientSideUploader
setConfiguredChunkSize(int|null $value)
Set the configured size (in bytes) of the uploaded file chunks.
int|null
getPHPMaxFileSize()
Get the maximim size (in bytes) allowed by PHP for a single uploaded file.