ajaxCRUD.com

» a PHP class to create / read / update / delete from a database table using AJAX

   by loud canvas media

AjaxCRUD API Reference

<< Reference overview
<< Home

appendUploadFilename

append the value of the row to the beginning of the filename
void appendUploadFilename ( String fieldName )
Use this function to prevent easily "overwriting" filenames on upload. You can have each filename easily be unique by attaching the primary key (or some other field) to the filename.

Details

Requires setFileUpload
Type function
Returns
Default no value appended

Parameters

fieldName
The name of the field which VALUE will be appended

Example

$tblDemo->setFileUpload("fldFilename", "uploads/", "uploads/");
$tblDemo->appendUploadFilename("pkRowID");

See also

New, Edit

 

"Very interesting class. Thanks a lot."
~gustavo