Multiple File Upload Identifying Values tip

I know this is very old school, but i just needed it for an existing app so this is more an Aid Memuor, also I could not remember where i got it from (someone yell if I’ve pinched your tip)

Sometimes you have multiple files uploads on a web form, and you want to allocate each file to a specific place or function, i know you can just work out which file is which based on its order in the @AttachmentNames list as per below


image := @AttachmentNames;
@If( @Elements(@AttachmentNames) > 0 ; image[1] ; “” )

but this only works well when the document is not edited all the time (new files added and deleted), personally i prefer an alternative method

First put your file upload and a editable field on your form


Set the field as hidden via html properties and give the form an id value the same as its name


Now put the following JavaScript in the other html field on the file upload properties

onChange=”document.getElementById(‘SponsorLogo’).value = this.value”

(obviously swapping out the elementid to the one you are using)


Now you will find that the field contains the value of the field both with JavaScript and notes wise on save

Fitness Week 9,10,11

3 weeks worth of results, but strangly little progress

First person to win 250 squash games
Kieran: 27 Games
Mark: 52 Games
(1 point head start on a game for every 10 games the other person is ahead)
(we also play by “you have to WIN a game, genuine mistakes on game points are ‘let’ “)

It should be noted that we are on to up to 6 games per match now and the games are far far harder and faster, we are going through balls at a rate of knots (single yellow spots rather than our traditional double yellow spots), i feel that its only the fact that mr Green wear the wrong trainers and so can’t corner properly that is letting me win

First person to loose 2 stone
Kieran ( Initially 15 Stone, 8 pounds) : 14′ 10″
Mark ( Initially 16 Stone, 8 pounds) : 16′ 4″

you know, it may be time to eat properly