Show last authors
1 {{box cssClass="floatinginfobox" title="**Contents**"}}
2 {{toc/}}
3 {{/box}}
4
5 A page can contain attachments which can then later be referenced from within a page. For example this is very useful for attaching images and displaying them in the page's content.
6
7 = Attaching a file =
8
9 There are 3 possibilities to attach a file:
10
11 == Using the top level menu ==
12
13 You can add an attachment using the "More actions" menu:
14
15 {{image reference="AddAttachmentsFlamingo.png"/}}
16
17 When clicked, it'll direct you to the Attachments tab located at the bottom of the page:
18
19 {{image reference="view-attachments.png"/}}
20
21 == Using the attachment tab at the bottom of the page ==
22
23 View the page on which you wish to attach a file and then click on the "Attachments" tab at the bottom of the page.
24
25 {{image reference="attachments.png"/}}
26
27 Note that the file selector that appears allows you to select as many files as you wish to upload. Thus you don't need to add attachments one by one.
28
29 == Using the WYSIWYG editor ==
30
31 Edit the page on which you wish to attach a file using the WYSIWYG editor. To link a specific text with an attachment click on "Link" in the toolbar. From the arrow change Page to Attachment or click on Upload to add a new file directly.
32
33 To add an image directly in the page click on "Image" and select an existing one from the wiki or click on Upload and add a new image from your computer.
34
35 {{image reference="AttachmentWysiwygToucan.png"/}}
36
37 = Deleting an attachment =
38
39 An attachment can be deleted by pressing the delete button that is shown only if the user has the specific rights for this. Also, a confirmation modal is provided for the action to be completed.
40
41 {{image reference="deleteAttachmentModal.png"/}}
42
43 = Linking to an attached file/image =
44
45 If you're using the Wiki editor, you can use the [[Wiki Syntax>>platform:Main.XWikiSyntax]] to display an image inline or link to an attachment.
46
47 If you're using the WYSIWYG editor, then use the "Link" or "Image" buttons as shown above.
48
49 = Linking to an external file/image =
50
51 If your file is on a remote server and you wish to link to it from your wiki, simply use the URL of the link as the content of your wiki link. For example, using the wiki editor you'd write:
52
53 * **XWiki Syntax 1.0**: {{code language="none"}}[http://some_remote_server/path/to/file>text to display]{{/code}}
54 * **XWiki Syntax 2.0**: {{code language="none"}}[[text to display>>http://some_remote_server/path/to/file]]{{/code}}
55
56 For displaying an image located on a remote server, use the following HTML code snippet:
57
58 * **XWiki Syntax 1.0**: {{code language="xml"}}<img src="http://some_remote_server/path/to/image"/>{{/code}}
59 * **XWiki Syntax 2.0**: {{code language="none"}}image:http://some_remote_server/path/to/image{{/code}}
60
61 See the [[XWiki Syntax Guide>>platform:Main.XWikiSyntax]] for more details.
62
63 = Size Limit =
64
65 The maximum size of an attachment is limited by the administrator. By default it is set at about 32 megabytes.
66
67 = Learn More =
68
69 For more information about how XWiki attachments work and how to configure/tune the attachment store, you can examine the [[administrator's guide to attachments>>platform:AdminGuide.Attachments]].

Get Connected