Zen Cart Logo

Upload numbering

Locked

Views: 1,201

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
16 Jan 2009, 2:28 PM
#1
vinyl_signs avatar

vinyl_signs

Zen Follower

Join Date:
Jun 2007
Location:
Shropshire UK
Posts:
125
Plugin Contributions:
0

Upload numbering

Hi - I have searched for - and not been able to find any reference to this - so will ask here..:smile:
When a file is uploaded (Product Option - file) - it is numbered incrementally - and the file uploaded reference can be found in the files_uploaded table..
If I want to reset all my numbering - I can empty my images/uploads folder - and remove records from files_uploaded table - but when I next test an upload - it is numbered with the next number - rather than starting again at "number 1" - so what I am asking - is where is the system taking that numbering from - and is there a way to reset it to start at number 1 ?

24 Jan 2009, 10:21 PM
#2
vinyl_signs avatar

vinyl_signs

Zen Follower

Join Date:
Jun 2007
Location:
Shropshire UK
Posts:
125
Plugin Contributions:
0

Re: Upload numbering

Anyone ?

25 Jan 2009, 7:55 PM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Upload numbering

TRUNCATE on the table should reset the value to 1 ...

25 Jan 2009, 10:39 PM
#4
vinyl_signs avatar

vinyl_signs

Zen Follower

Join Date:
Jun 2007
Location:
Shropshire UK
Posts:
125
Plugin Contributions:
0

Re: Upload numbering

Ajeh:

TRUNCATE on the table should reset the value to 1 ...Thanks for your reply - I have been testing an upload attribute - and wanted some way to reset the numbering...took a while for me to find the TRUNCATE function - under the "empty" button - hope I got it right - it seems to have worked...
Again thanks - another of those nagging problems solved...:D