开发者

CodeIgniter File Uploading Class , encrypt_name

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜