Cannot delete file with Delete Before Record/Update

Question:


Delete Before Record and/or Delete Before Update Server Behaviors are not deleting the file.

Answer:


In order to delete file the field in which you specify the id of the record must be with same name and id parameters as the column in database.

In example if your Primary Key column is named uploadid you must name after it the text field as well.