Reply to Re: Changing the image name

Re: Changing the image name new!
by colin, 17 years, 10 months ago
Please read the documentation.

To rename a file, use:
$foo->file_new_name_body = 'avatar';

To append a string to the filename, use:
$foo->file_name_body_add = '_avatar';

To change a file extension:
$foo->file_new_name_ext = 'ext';

To force the filename to something specific:
$foo->file_overwrite = true;
$foo->file_auto_rename = false;
(This allows overwriting, and deactivates the auto-renaming feature. You need to set up both in order to upload a file and be sure that it will be always overwriting the same file and keep the same filename)Reply

Your reply

Name *
Email 
Title *
Text *
CAPTCHA image
Enter the code displayed on the image:
Click on the image to generate another one if it is hard to read it. The case is important