문제

If I use the CodeIgniter File Upload Class and rename the image being uploaded using:

$config['file_name']

do I still have to use

$this->security->sanitize_filename()

on the image being uploaded by user?

도움이 되었습니까?

해결책

just set $config['encrypt_name']; will automatically rename users uploaded file or image for more information check user guide of File uploading library

File Upload Library

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top