Template identifier

Upload core product.
Post Reply
webrunner
Posts: 25
Joined: Thu Oct 15, 2009 10:23 am

Template identifier

Post 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?

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Template identifier

Post 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.

webrunner
Posts: 25
Joined: Thu Oct 15, 2009 10:23 am

Re: Template identifier

Post by webrunner »

Yes, I know, but I would like to have it reset on each file, not on each instance.

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Template identifier

Post by support »

One each file ? I don't understand what is the need ? Why not using indexrename ?

webrunner
Posts: 25
Joined: Thu Oct 15, 2009 10:23 am

Re: Template identifier

Post by webrunner »

I solved it by using onthefly chunking now.

Post Reply