create the image filename as the ID
I have a insert form and it has categories field and a file field. When I click the Insert button I want the name of the file that is being uploaded to be the id of the record the form is inserting into the database.
Can this be done? or do I need to insert the record first and then the image on a separate page?