Our site www.viart.com site is operated by latest Viart Shop 5 with default Clear design
Topic Information
dalfonso01
dalfonso01
Hi,
I had to make some changes to some images and uploading I have different versions.
 
I would expect to be asked to overwrite or not but it not works in such a way so I have the same image with different numbers in the name name_1 name_2 and so on.
 
Is there a way to avoid this?
 
Thanks
Fabio
 
Ned
Ned
In 3.5 the routine for creating new filenames (function get_new_file_name) seems to be in "includes/image_functions.php" at line 314. This will be called by scripts elsewhere so shouln't be removed.
 
You could experiment _on a test site_ with changing line 333
$new_filename = $filename . "_" . $current_index;
to
$new_filename = $filename;
which will keep the original filename - but might cause unpredictable effects elsewhere.