dekuan/defileuploader

File uploader provider for server side.

1.0.6 2018-01-06 12:10 UTC

This package is not auto-updated.

Last update: 2024-11-18 07:47:45 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 = "" );