AG 5.81.
Setting:
Table with FILE field:
- do not rename files
- delete from server when record removed
- Display link as field contents
To reproduce:
1. Upload file with name "something.pdf" and save.
2. Then add a new record (file). Upload the same file "something.pdf" and save.
3. You now have two entries in your table with exactly the same entry in the FILE field. - So far, so good.
1st problem
Now check the actual folder /images on your server: You will notice only ONE file. This IS a problem, as the 2nd file might actually NOT be the same as the first.
2nd problem
When you now delete ONE entry from your table (in the generated AG application) the other record will remain there (ok).
Now check the folder /images on your server again: You will notice the file is gone. It has been deleted. The effect is, that the remaining record does not have some file anymore.
Simple suggested solution (for AG developers)
a) always save files with hashed names (SHA256, not MD5 to minimize collisions).
b) as AG is using several internal tables already, why not introduce another. Fields:
- ID
- hash of "real name + unixtimestamp" (timestamp to minimize collisions)
- real name
Now AG should return this ID to the usertable .... The user can then also choose if he would like to see the real name

Well, sort of some suggestion, but the problem is serious I think.
Olaf
Olaf