Class SystemFineUploadHandler
Base SystemFineUploadHandler class to work with ajaxfineupload.php endpoint
Upload files as specified
Do not use or reference this directly from your client-side code. Instead, this should be required via the endpoint.php or endpoint-cors.php file(s).
Copyright:
Copyright (c) 2015-present, Widen Enterprises, Inc.
License: License (MIT)
Link: The MIT License (MIT) Copyright (c) 2015-present, Widen Enterprises, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Located at odules/system/class/fineuploadhandler.php
License: License (MIT)
Link: The MIT License (MIT) Copyright (c) 2015-present, Widen Enterprises, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Located at odules/system/class/fineuploadhandler.php
public
|
|
public
|
|
public
string
|
|
public
array
|
#
combineChunks( string $uploadDirectory, string|null $name = null )
Combine chunks into a single file |
public
array
|
|
protected
|
|
public
array
|
|
protected
string|false
|
#
getUniqueTargetPath( string $uploadDirectory, string $filename )
Returns a path to use with this upload. Check that the name does not exist, and appends a suffix otherwise. |
protected
|
#
cleanupChunks( )
Deletes all file parts in the chunks folder for files uploaded more than chunksExpireIn seconds ago |
protected
|
|
protected
integer
|
|
protected
boolean
|
|
protected
boolean
|
public
array
|
$allowedExtensions
|
#
array()
|
public
array
|
$allowedMimeTypes
|
#
array()
|
public
|
$sizeLimit
|
#
null
|
public
string
|
$inputName
|
#
'qqfile'
|
public
string
|
$chunksFolder
|
#
'chunks'
|
public
float
|
$chunksCleanupProbability
|
#
0.001
|
public
integer
|
$chunksExpireIn
|
#
604800
|
protected
|
$uploadName
|
|
public
|
$claims
|