Changing the image name

See all posts See thread Reply

Re: Changing the image name new!
by Mitchel Verschoof, 13 years, 7 months ago
Ok, now.
I gave the file a new name:
$image_name=time().'.'.$_FILES['image']['name'];
$foo->file_new_name_body = 'big_'.$image_name;

2 things:

1. he will rename it to: big_1285020073Afb076jpg.jpg
so thats 2 times jpg, and i just want it one time/

2. How to put the new name in database?Reply
Re: Changing the image name new!
by colin, 13 years, 7 months ago
1. Maybe something like this... it all depends on the original name you have for the image.
$image_name=time().'.'.$foo->file_new_name_ext;
$foo->file_new_name_body = 'big_'.$image_name;

2. This question is out of scope in this forumReply