Hi,
I am looking at trying to add some form data to a filename?
I cant see where this is done?
I have added some custom code after the upload function but I think this is too late. It changes the name but its not being saved to the the upload array so the physical filename is not changed.
If I do it before the upload the name doesn't seem to exist so there is nothing to change.
Heres the code:
at the minute I the name is: timestamp_filename.jpg
I want someformdata_timestamp_filename.jpg
or can this be done in the "Files config" box in the upload?
Any help would be much appreciated.
Kind Regards
I am looking at trying to add some form data to a filename?
I cant see where this is done?
I have added some custom code after the upload function but I think this is too late. It changes the name but its not being saved to the the upload array so the physical filename is not changed.
If I do it before the upload the name doesn't seem to exist so there is nothing to change.
Heres the code:
<?php $this->data['file1'] = ($this->data['category'].'_'.$this->data['file1']); ?>
at the minute I the name is: timestamp_filename.jpg
I want someformdata_timestamp_filename.jpg
or can this be done in the "Files config" box in the upload?
Any help would be much appreciated.
Kind Regards