Class UploadHandlerDownload
- UploadHandler
- UploadHandlerDownload
License: GNU General Public License v2.0 only **********************************************************************************************
Brief:
Improved checks and update of database after upload of files.
This class extends the UploadHandler of the jquery-file-upload library. After the upload of the file we do some checks on the file and if no check fails then the Admidio database will be updated. If you want do upload files for the download module just create an instance of this class.
Class: UploadHandlerDownload
Code:
// create object and do upload $uploadHandler = new UploadHandlerDownload(array('upload_dir' => $uploadDir, 'upload_url' => $uploadUrl, 'image_versions' => array())); @endcode
Par: Examples
Located at uploadhandlerdownload.php
Methods summary
protected
stdClass
|
#
handle_file_upload( string $uploaded_file, string $name, integer $size, $type, $error, $index = null, $content_range = null )
Override the default method to handle the specific things of the download module and update the database after file was successful uploaded. This method has the same parameters as the default. |