Even if an attachment record doesn't hold file (or the file is zero lenght) you should be able to
a) delete the attachment record by $att=mgd_get_attachment() and $att->delete()
b) change the file contents trough mgd_open_attachment (takes normal fopen arguments, return normal filepointer).
Are You sure? I always thought that midgard database records management highly depends on fopen in this case.
No I'm not sure (I haven't tested) if it'll work with the file missing alltogether but empthy (zero lenght) file should work just fine.
/Rambo
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
