seanngoh Posted July 26, 2015 Share Posted July 26, 2015 hi, Really need some help here. I am using PS 1.6.1.0 and i have got a problem uploading attachment to my product. I have tested multiple cases with this problem and this is what i found: 1. when file size is more than 2mb : I am getting : <file name> : Invalid file 2. When file size is less than 2mb (1.9mb) : file successfully uploaded Initially I thought my server has not changed the default setting of 2MB upload, i recheck my phpinfo, and confirmed it's not. I have reconfirmed with my web host, they said my server accepts 100MB. And I had used a simple file uploader script to test if my server accepts more than 2mb. The test script that I'm using is directly taken down and unchanged from : http://www.w3schools.com/php/php_file_upload.asp After trying to upload a 3mb of file which took me less than 5 seconds to upload completely, the file was successfully uploaded to my server, and exist in the upload folder (i checked through FTP). So it's confirmed that my server accepts 2mb file. But no matter how i try to upload an attachment > 2MB, this problem keeps annoy me. please help... Link to comment Share on other sites More sharing options...
tomerg3 Posted July 27, 2015 Share Posted July 27, 2015 trying placing a file with phpinfo() in your admin folder, open it in the browser and check the max_upload_file size, as some servers require a php.ini in subfolders. Link to comment Share on other sites More sharing options...
FranciscoVillen Posted March 30, 2016 Share Posted March 30, 2016 Hi, I had exactly the same problem and I reached to solve it. Basically, in Administration -> preferences you should set the max size of uploaded files, Prestashop set it on 2MB by default. Besides you may need to increase the max_upload_file size value in your server. Here is the explained solution: https://www.prestashop.com/forums/topic/516906-possible-bug-uploading-attachments-invalid-file/?do=findComment&comment=2289803 Best regards. Link to comment Share on other sites More sharing options...
Recommended Posts