Re: Rename image with time

See all posts Reply

Re: Rename image with time new!
by Mark, 9 years, 6 months ago
Hi, I am trying to rename the image as below name generated by time for unique name but it seems to cause errors, fine if I use a text name. What am I doing wrong? Thanks and thanks for your hard work on the class.upload :)
$foo_m->file_new_name_body = $myfoo_m;Reply
Re: Rename image with time new!
by colin, 9 years, 6 months ago
What errors do you have?Reply
Re: Rename image with time new!
by Mark, 9 years, 6 months ago
Sorry my error the ext isn't getting added to the name that goes into the database. How can I use $file_src_name_ext to add to the name as I don't want to convert the upload.Reply
Re: Rename image with time new!
by colin, 9 years, 6 months ago
I don't understand your issue. Do you have actual errors? Or do you have an unexpected result? What is your string with the time? Are you sure you don't have forbidden characters in it?

In any case, you should output the log produced by the class, it will give you more information. Copy the log here for further analysis.Reply