The record will need to be created before the image is uploaded. by default, digital file pro will add the upload code before the Insert record code so that the name of the uploaded file can be inserted into the file name column of the database.
If you are using the DataAssist insert record server behavior, a session variable is created with the ID of he record that was inserted.
The name of the session variable is set in the Session section of the DataAssist insert record server behavior. In the DFP Upload File Wizard, you could reference the session variable as the file name, but you will need to Manually move the Upload code to be after the Insert Record server behavior, and make sure that the insert record server behavior does not specify a page to redirect to after the record is inserted.