Form/File will automatically delete empty storage locations, but assets

expect them to stick around.  Add a flag to Form/File.pm to prevent it
from deleting them.  Make sensitive assets use that flag.
This commit is contained in:
Colin Kuskie 2009-07-23 16:50:57 +00:00
parent 69a07bb672
commit bd924e8f88
4 changed files with 23 additions and 7 deletions

View file

@ -125,6 +125,7 @@ sub definition {
fieldType=>"image",
deleteFileUrl=>$session->url->page("func=deleteFile;filename="),
maxAttachments=>2,
persist => 1,
defaultValue=>undef,
label=>$i18n->get("attachments"),
hoverHelp=>$i18n->get("attachments help")