Post by readyman » Mon Jun 22, 2009 10:22 pm

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.

http://www.alreadymade.com
Follow me on twitter.com/alreadymade


User avatar
Global Moderator

Posts

Joined
Wed May 20, 2009 5:16 am
Location - Sydney

Post by Daniel » Mon Jun 22, 2009 10:38 pm

just be carefull with uploading images. its might be good practise to add prefixes to the images before uploading.

User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by leovicio » Sat Jul 04, 2009 1:55 am

in
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);

User avatar
Newbie

Posts

Joined
Sun Apr 12, 2009 11:43 am

Post by tarrasque » Fri Sep 11, 2009 1:58 pm

Hi, im new here, and just install opencart v1.3.2, and found the image.php has been removed form after v1.3.0...

so, any workaround to fix this in v1.3.2? please help...

Newbie

Posts

Joined
Fri Sep 11, 2009 1:55 pm

Post by Qphoria » Fri Sep 11, 2009 7:55 pm

well if its gone its possibly no longer an issue.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by cactus » Thu Oct 01, 2009 8:40 pm

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?

Newbie

Posts

Joined
Fri Aug 21, 2009 7:43 pm
Who is online

Users browsing this forum: No registered users and 6 guests