Hi Bruce
Ok. I have upgraded to 8.34 and STheory 2.14 and it's better but no cigar
What I have done is in the 'SaveFile::FND:Photo1 Routine' (my upload field is FND:Photo1) I am changing the name that is already loaded into FND:Photo1. I am successfully randomising the name and the new unique name is in FND:Photo1. So far so good.
BUT, as you said, the code still executes twice but my code also runs twice.
The first time the code runs I change the name of the file from Pet1.jpg (ignoring the path) to ABPet1.jpg and the second time that name gets changed to PPABPet1.jpg.
The file gets written to the \uploads folder as ABPet1.jpg but the name stored in the table is PPABPet1.jpg
On the File Upload field I just have 'Save file to uploads folder' ticked, no Blob, no 'Remove'. You said that in only one of the two cases will it do anything but this seems not to be the case.
Could we need an 8.35
Cheers
Keith