danielleruso Posted December 7, 2009 Share Posted December 7, 2009 When I try upload photo I recive error:Malformed header from CGI script: file -C -m magicfiles Try `file --help' for more information. Status: 302 X-Powered-By: PHP/5.2.6 Content-Type: text/html; charset=utf-8 P3P: CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA" Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Expires: Sat, 26 Jul 1997 05:00:00 GMT Location: /admin1113/index.php?tab=AdminAppearance&conf=6&token=c8113899147acb3c9233e150a925828aWhy?Help me, please. Link to comment Share on other sites More sharing options...
Notesowo.pl Posted March 8, 2010 Share Posted March 8, 2010 Go to images.inc.php and change: $mime_type = trim(exec('file -b --mime-type '.escapeshellarg($file['tmp_name'])));to $mime_type = trim(exec('file -bi '.escapeshellarg($file['tmp_name'])));Did it help? Link to comment Share on other sites More sharing options...
muktadir Posted March 8, 2010 Share Posted March 8, 2010 if it doesn't help you can check this solution:http://www.icodebd.com/prestashop-image-upload-errors-fixes/ Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now