Thanks for answering.
So, after a successful upload I should set up a delete behaviour, but I don't understand how that can be possible. I mean, after updating the record with the new file name, how can I tell the delete file behaviour to delete the file whose name was in the record before the update ?