Almost...
The first file originally called P1010655 gets renamed 51.jpg.
Subsequent files get named:
P1010656_1.jpg
P1010657_1.jpg
P1010658_1.jpg
I guess I should give up on file renaming, its not going to give the results I was hoping for.
I would be better off finding a way of inserting the original file name and propertyID into a database, once the upload is complete and let the database worry about file names.
Is there an easy way to call the file name after the upload?