T4mer Posted April 7, 2014 Share Posted April 7, 2014 after uploading prestashop from my localhost to the server , a problem showed up when trying to upload product image i got this error "Server file size is different from local file size" after searching in prestashop files i found that is uploader class is responsible for the upload process. when commenting if statement witch responsible of comparing file size and tring to upload an image i got this error "An error occurred while copying image, the file does not exist anymore." i changed img folder permissions to 777 still same problem ? Link to comment Share on other sites More sharing options...
shacker Posted April 9, 2014 Share Posted April 9, 2014 you change subfolders too? Link to comment Share on other sites More sharing options...
T4mer Posted April 10, 2014 Author Share Posted April 10, 2014 it was installed on my localhost at http://localhost/prestashop then i uploaded files to ftp and setup database connection at mysite.com Link to comment Share on other sites More sharing options...
vekia Posted April 10, 2014 Share Posted April 10, 2014 in some hosts permissions like 777 will not work (for example aruba host) make sure that you use suggested chmods by your hoster for "writable" permissions. Link to comment Share on other sites More sharing options...
T4mer Posted April 10, 2014 Author Share Posted April 10, 2014 my hosting supports 777 permissions. i chmoded 777 to img folder ? what next should be 777 too ? Link to comment Share on other sites More sharing options...
shacker Posted April 12, 2014 Share Posted April 12, 2014 change to img and subdirectories too Link to comment Share on other sites More sharing options...
thektalin Posted April 15, 2014 Share Posted April 15, 2014 Hi, In file classes/Uploader.php at line 179 you have if ($file_size === $file['size']) I changed to (see below) and worked for me if ($file_size = $file['size']) Please try . Thank you. Link to comment Share on other sites More sharing options...
vekia Posted April 15, 2014 Share Posted April 15, 2014 = is not valid PHP comparison operator Link to comment Share on other sites More sharing options...
T4mer Posted April 16, 2014 Author Share Posted April 16, 2014 change to img and subdirectories too same problem ?? Link to comment Share on other sites More sharing options...
razvancf Posted June 23, 2014 Share Posted June 23, 2014 so... in the end what is the proper solution for this? I also have this problem. Please, help? Thanks, Razvan Link to comment Share on other sites More sharing options...
Recommended Posts