Hi,
I've read many of the threads concerning this issue, but still was not able to fix it.
This store is running Prestashop 1.6.1.3.
I'm trying to import a csv file with just one product and one image for the product. The server generates the error message "Error copying image upload/vr.jpg"
The vr.jpg file is about 230kb.
In classes/Tools.php, placed var_dumps to $source and $destination:
string(14) "/upload/vr.jpg"
string(49) "/usr/local/www/prestashop/img/tmp/ps_importhld2fh"
Then, did the same thing in AdminImportController.php after the comment // associate image to selected shops, lines 1829...
and got:
$product->id: string(1) "2"
$image->id: string(2) "27"
$url: string(13) "upload/vr.jpg"
$regenerate: string(0) ""
But could not understand why I get the error. Tried already to place the picture in different locations, use absolute and relative paths.
Tried http://localhost/vr.jpg
http://192.168.0.2/vr.jpg
all with single, double or no quotes, the image is always retrieved.
When executing the import csv procedure, the working directory is in /admin/, am I right? One should use relative paths from there?
Is there a defined place where to upload the images to the server?
I'd appreciate help on this.