Hi,
I noticed some interesting issues with the current Document/Image uploads. I am not sure these are actual bugs or a well thought out feature that I am overlooking.
Files with Same Name
I noticed when I create two records and attach the same file for both records, Scriptcase simply replaces the existing file. Scriptcase should keep both files on the server and rename the files if needed.
Record is Deleted but Not Files
I also noticed when I click on “Delete this record” next to the attachment on a Form. It does remove the reference from the database but the File still physically exists on the server. So, the server ends up taking up unnecessary disk space. I thought about using the onAfterUpdate event but the problem is by that time the record is already updated and I cannot retrieve the file name.
I am on Scriptcase 7.00.0018.