![]() |
Sergey Kornilov admin 9/8/2022 |
Implement BeforeAdd event for this table. In this event calculate md5 of the uploaded file, check if it is unique and cancel adding the record in question if such md5 value already exists there. |
D
|
DRCR Dev author 9/8/2022 |
Thank you for breaking that into manageable pieces. Makes sense. This is what I have tried in Before Record Add but get a PHP error after.( Uncaught Error: Call to a member function fetchAssoc()) The php file is uploaded to table import with field invoice. The md5 is saved to field md5 $fileArray = my_json_decode($values["invoice"]); Any advice is appreciated. |