Changes for page Attachments

Last modified by Thomas Mortagne on 2023/10/10

<
From version < 43.3 >
edited by Simon Urli
on 2021/03/30
To version < 43.4 >
edited by Manuel Leduc
on 2022/11/22
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.surli
1 +XWiki.mleduc
Content
... ... @@ -19,6 +19,39 @@
19 19  Note that if you've already tried to attach a file and it failed, in order for the new size setting to be taken into account you might need to clear your browser's cache.
20 20  {{/warning}}
21 21  
22 += Mimetype Restriction =
23 +
24 +{{version since='14.10RC1'}}
25 +The mimetype allowed/blocked on a space can be configured.
26 +
27 +== xwiki.properties ==
28 +
29 +##xwiki.properties## allow to configure the default mimetype restrictions at farm level.
30 +
31 +{{code language='properties'}}
32 +#-# [Since 14.10RC1]
33 +#-# Define the list of allowed attachment mimetypes. By default, this list is empty, but you can specify a
34 +#-# comma-separated list of allowed mimetypes. Note that a joker (*) can be used to accept any media type. Once this
35 +#-# list is not empty, any attachment with an unlisted mimetype will be rejected.
36 +#-# For instance, if you want to only accept plain text and any kind of images, you can set the list to:
37 +#-# text/plain,image/*
38 +# attachment.upload.allowList=
39 +
40 +#-# [Since 14.10RC1]
41 +#-# Define the list of blocked attachment mimetypes. By default, this list is empty, but you can specify a
42 +#-# comma-separated list of blocked mimetypes. Note that a joker (*) can be used to accept any media type. Once this
43 +#-# list is not empty, any attachment matching one of the listed mimetype will be rejected.
44 +#-# For instance, if you want to reject plain text and any kind of images, you can set the list to:
45 +#-# text/plain,image/*
46 +#-#
47 +# attachment.upload.blockList=
48 +{{/code}}
49 +{{/version}}
50 +
51 +== Administration UI ==
52 +
53 +The mimetype restrictions can also be configured at wiki or space level through the administration UI, by visiting the ##Attachments Restriction## section of the administration.
54 +
22 22  = Versions =
23 23  
24 24  When a user uploads an attachment and then uploads another attachment with the exact same name, you can decide whether or not to keep a version history of the attachments like you do with documents.

Get Connected