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);
精彩评论