PDA

View Full Version : Image_timeStamp



michael_s
09-04-2007, 04:22 PM
This file is a fix since the upload.php did not work with my RC1. Really though you don't need to download ANY of these files.

GOTO catalog/admin/includes/classes/upload.php

FIND: $this->set_filename($file['name']);

REPLACE WITH:
$now = date("YmdHis");
$this->set_filename($now . '-' . $file['name']);

YOU DONE. If its to complicated, I have attached the file. Just replace your upload.php provided you have never modified it.

More... (http://www.oscommerce.com/community/contributions,963)