Home  • Framework • CodeIgniter

Upload problem in CodeIgnitor

sometime-you-want-to-uploadSometime you want to upload anything in any form you see the Warning: escapeshellarg() has been disabled for security reasons message on your site. What can you do to fix this if you use codeignitor framework? Here is the full warning:
A PHP Error was encountered

Severity: Warning

Message: escapeshellarg() has been disabled for security reasons

Filename: libraries/Upload.php

Line Number: 1039

Soluation :

1. Open Upload.php file from system/libraries folder 2. In line number 1039 add @ sign in front of escapeshellarg($file['tmp_name']) function 3. Save it , I think your problem will be solved.

Comments 0


Share