Page 1 of 1

Template identifier

Posted: Thu Jan 28, 2010 9:40 am
by webrunner
Hi there,

I'm using the template-feature to rename files before uploading, but there's one thing I don't understand: I would like to rename the original file, but keep the numbering for each file.
Example:

If I do not use the template-feature, jfileupload creates chunks like this:

Code: Select all

origfile.1
origfile.2
origfile.3
...
I want the file to be called "newfile", and upload it like:

Code: Select all

newfile.1
newfile.2
newfile.3
...
and to achieve this, create this parameter:

Code: Select all

document.writeln('<PARAM NAME="template" VALUE="newfile.:identifier:">');
But jfileupload does not begin from zero (or 1) for each file, but continuously increments while the applet instance is open. Is there any way I can do this?

Re: Template identifier

Posted: Thu Jan 28, 2010 8:00 pm
by support
Could you try to add:

Code: Select all

<PARAM NAME="identifierinit" VALUE="1">
It should restart from 1 as soon the applet is reloaded or another instance is starting.

Re: Template identifier

Posted: Fri Jan 29, 2010 10:37 am
by webrunner
Yes, I know, but I would like to have it reset on each file, not on each instance.

Re: Template identifier

Posted: Sun Jan 31, 2010 9:53 pm
by support
One each file ? I don't understand what is the need ? Why not using indexrename ?

Re: Template identifier

Posted: Tue Feb 02, 2010 10:48 am
by webrunner
I solved it by using onthefly chunking now.