Jump to content

irder

Members
  • Posts

    341
  • Joined

  • Last visited

Posts posted by irder

  1. Hi! I still have this same issue, ie. the upload of the customisation image file seems to work - it's in the uploads folder and I can download and see it fine via FTP. However, as part of the user experience during the pruchasing process, the thumbnail shows up as a broken image icon. If I right-click on it to Open in a New Tab, I get a message 

    Forbidden

    You don't have permission to access /upload/f2cf544d8c2598888c7ec77c06f7e72f_small on this server.

     

    I tried changing file permissions even right up to 777 but this makes no difference. I don't have the "php_flag engine off" in the .htaccess file in the uploads folder. Does anybody have any other ideas? This is the .htaccessfile:

     

    deny from all
    <Files ~ "(?i)^.*\.(jpg|jpeg|gif|png|bmp|pdf)$">
    order deny,allow
    allow from all
    </Files>
     

     

    If I am a customer trying to buy a product, I certainly would not proceed as it looks like my file was not uploaded. Any ideas? thanks!

     

     

    hello,you may try to add the extension to the small image file

     

    elseif (!ImageManager::resize($tmp_name, _PS_UPLOAD_DIR_.$file_name.'_small.jpg', $product_picture_width, $product_picture_height))

                        $this->errors[] = Tools::displayError('An error occurred during the image upload process.');

                    elseif (!chmod(_PS_UPLOAD_DIR_.$file_name, 0777) || !chmod(_PS_UPLOAD_DIR_.$file_name.'_small.jpg', 0777))

                        $this->errors[] = Tools::displayError('An error occurred during the image upload process.');

                    else

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More