Not a massive bug, but if you are trying to upload images of the same name, then all previous images of the same name are overwritten. Eg. if you upload images1/preview.jpg, images2/preview.jpg & images3/preview.jpg they get overwritten.
I think wordpress checks if the file exists when uploading, and if it does, it just adds a new number to the filename - maybe something to think about for the next update.
I think wordpress checks if the file exists when uploading, and if it does, it just adds a new number to the filename - maybe something to think about for the next update.
http://www.alreadymade.com
Follow me on twitter.com/alreadymade
in
admin\controller\catalog image.php
Replace
admin\controller\catalog image.php
Replace
Code: Select all
$filename = basename($this->request->files['image']['name']);
Code: Select all
$filename = md5(mktime());
$ext = explode('.',basename($this->request->files['image']['name']));
$filename.='.'.end($ext);
Hi,
the problem still exists. Now everything has been moved to the file "admin/controller/catalog/product.php". Does anyone know how to modify the code in OpenCart 1.3.2, the pictures were uploaded at the beginning, for example, the name of the product with id?
the problem still exists. Now everything has been moved to the file "admin/controller/catalog/product.php". Does anyone know how to modify the code in OpenCart 1.3.2, the pictures were uploaded at the beginning, for example, the name of the product with id?
Who is online
Users browsing this forum: No registered users and 6 guests