Solved
I found the issue with the file uploads.
The Default file name was being written as :
'DefaultFileName' => "".((isset($_POST["gallery4Upload"]))?$_POST["gallery1Upload"]:"") ."",
replaced with :
'DefaultFileName' => "".($row_SecurityAssistusers["UserGalleryImage1"]) ."",
Now all works well.
regards
Jonathon