开发者

CodeIgniter File Uploading Class , encrypt_name

开发者 https://www.devze.com 2023-02-04 09:52 出处:网络
HI, is there any way to limit the characters that the uploading class as开发者_StackOverflowsigns to the filename.

HI, is there any way to limit the characters that the uploading class as开发者_StackOverflowsigns to the filename.

thanks..


Yes you can do that with max_filename parameter.

From CI User Guide :

max_filename: The maximum length that a file name can be. Set to zero for no limit.

Update: If you wanna do that with encrypt_name you may set file_name parameter.

$config['file_name'] = substr(md5($file_name),15);
0

精彩评论

暂无评论...
验证码 换一张
取 消