Process change "-" to "_" and remove "." ?

See all posts Reply

Process change "-" to "_" and remove "." ? new!
by TOTO, 16 years, 8 months ago
Hi,

I set
$handle->file_new_name_body = 'detp-region'.'.thumbnail.';
when I upload a file the destination file is dept_regionthumbnail.jpg

And after around one hour I don't understand why.... any help ?

Regards,

ThomasReply
Re: Process change "-" to "_" and remove "." ? new!
by colin, 16 years, 8 months ago
Try to add the following:
$handle->file_safe_name = false;
Reply
Re: Process change "-" to "_" and remove "." ? new!
by TOTO, 16 years, 8 months ago
Great ! It's working now !!!

I read the docs, but they say only change space with _ ! That's why !

Many many thanks.

Regards,

ThomasReply