Delete file server behavior
I need your help for this:
I created some insert,update,detail and result pages (standard) with DataAssist.
In the insert page i have a file field to upload an image to a folder.
This all works well, the file get's uploaded and the filename stored in the databse column.
Now i added a delete file behavior to the results page with the trigger set to Delete button pressed. This behavior code is placed before the delete record from database and it works great. The file get's deleted when delete is pressed and also the record is deleted from the database.
Now i do exactly the same on the detail page but where ever i place the delete file behavior code only the database record get's deleted but the file remains in the folder.
Do you have any idea why it works on the result page but not on the detail page when delete button is pressed?
Thanks for your advice.