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