On 04/05/2011 09:19 AM, Caleb James DeLisle wrote:
> If you were to roll back the version of the document, you would (presumably)
> want your "deleted"
> attachments back. This is always how it was except that before, it was hidden
> in the database.
>
> Unfortunately, XWiki Enterprise user interface has no mechanism for making a
> deleted attachment
> vanish from history.
Yes it does, in the document index (Main.AllDocs) there's a Deleted
Attachments section (XWiki.DeletedAttachments) which lists all the
deleted attachments, and has buttons for permanently deleting them.
> However, XWiki Platform has the API functions to do that and you can access
> them from script:
>
> #foreach($delAttach in $xwiki.getDeletedAttachments('Main.WebHome'))
> #if ($delAttach.getFilename() == 'reallyBigFile.iso')
> $delAttach.delete()
> #end
> #end
>
> And that will perminantly remove any deleted attachment called
> 'reallyBigFile.iso' from the document
> 'Main.WebHome'.
>
> More information about the API functions available in platform:
> http://nexus.xwiki.org/nexus/service/local/repositories/releases/archive/com/xpn/xwiki/platform/xwiki-core/3.0/xwiki-core-3.0-javadoc.jar/!/index.html
>
>
> Caleb
>
>
> On 04/04/2011 02:36 PM, Legeinfo wrote:
>> "Deleted" attachments are not deleted in version. 3.0 with new file system
>> storage .
>> Is this intended or a malfunction?
>> After testing with some Gigabyte-files my hard disk was getting full because
>> of these "deleted" files.
>> Volker
--
Sergiu Dumitriu
http://purl.org/net/sergiu/
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users