dekuan/defileuploader

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

File uploader provider for server side.

1.0.6 2018-01-06 12:10 UTC

This package is not auto-updated.

Last update: 2021-06-06 15:33:06 UTC


README

Usage

Receive a file sent from client.

$oUploader = new CDeFileUploader();
$oUploader->setAllowFileExt( Array( 'jpg', 'jpeg', 'png' ) );
$oUploader->setLmtMaxSize( 2 * 1024 * 1024 );	//	2M
$oUploader->setOverwrite( true );
$oUploader->saveUploadFile( $sDstFilePath, & $vStreamData = "" );