just set $config['encrypt_name'];
will automatically rename users uploaded file or image for more information check user guide of File uploading library
CodeIgniter - Directory Traversal - sanitize_filename()
-
27-11-2021 - |
Domanda
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?
Soluzione
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow