Wizard storage should delete temp files when reset
|Reported by:||Simon Charette||Owned by:||nobody|
|Cc:||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
In order to keep reference to files uploaded through forms during a step submission files are temporally stored using the declared
As documented, those temporary files are never deleted, even upon wizard reset or completion.
I understand that it's not possible to clean temporary files in all cases (i.e. incomplete wizard) but I think we should try to cleanup after ourselves when possible. That is when
storage.reset is explicitly called.
Attaching a PR with a test and a documentation admonition.