Attachments in Orbeon

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Attachments in Orbeon

rovsh
Hello,

We have been using file upload control from Form builder in our forms. Files are uploaded without any problem, however when we delete them from the form, and/or upload a new file (instead of old one), Orbeon keeps the previously uploaded file in database.

What is the correct behaviour in Orbeon for deleted file? To be marked in database as 'deleted' or to be deleted from database (physically)?

As I mentioned earlier, in our case Orbeon keeps the old file and does not mark it as 'deleted'. If it never deletes the files, then at some moment in future, our database will be full of useless records.

Thanks in advance.

-Rovsh
Reply | Threaded
Open this post in threaded view
|

Re: Attachments in Orbeon

Erik Bruchez
Administrator
Rovsh,

This is a known issue:

https://github.com/orbeon/orbeon-forms/issues/271

Yes the correct behavior would be to not keep unreferenced attachments!

Regards,

-Erik