Contents

Attachments

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.

Attaching a file

There are 3 possibilites to attach a file using the default Albatross skin:

Using the top level menu

View the page on which you wish to attach a file and then select the "Show > Attachment" option in the top level menu:

attachment-menu.png

You'll see a list of the current attachments and a possibility to upload more files:

attachment-bottom.png

Using the attachment panel at the bottom of the page

View the page on which you wish to attach a file and then click on "Attachments" at the bottom of the page. That'll open the attachment panel:

attachment-bottom.png

Using the WYSIWYG editor

Edit the page on which you wish to attach a file using the WYSIWYG editor and click on the "Insert an Attachment Link" icon in the toolbar. You can also click on "Insert/edit image" and you'll get a similar popup windows as shown below:

attachment-wysiwyg-file.png

Note that you can create a link to the attachment/image directly in that same popup window.

Linking to an attached file/image

If you're using the wiki editor, you can use the Image macro to display an image inline. If you simply wish to link to an attachment, use the Attach macro.

If you're using the WYSIWYG editor, then use the "Insert an Attachment link" or "Insert/edit image" buttons as shown above.

Linking to an external file/image

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:

[http://some_remote_server/path/to/file>text to display]

For displaying an image located on a remote server, use the following HTML code snippet:

<img src="http://some_remote_server/path/to/image"/>
Version 6.3 last modified by VincentMassol on 27/06/2008 at 16:08

Comments 5

Aneiba | 31.10.2007 at 12:54 PM
I am trying to insert wider image to a page, but when i try to display the pag, i can not see the whole image and there is no slide bar to take you to the end of the image, any idea why Xwiki doing that, even in this page if you look at the first image, it is the same thing you can not see it as a whole

otuser1 | 21.11.2007 at 06:46 AM
Is the 10MB maximum attachment size only apply to HSQLDB install? It is quite difficult to convince the boss to use xwiki for "enterprise" work when his 25MB PowerPoint file is not attachable.

VincentMassol | 21.11.2007 at 02:01 PM
There's no 10MB limit… It's limited to 10MB by default but can be set to any value.

JaapHaitsma | 02.12.2007 at 10:34 PM
Would be nice to also add a comment to each upload. That way if you are working on an attachment with somebody you can store some meta data about each version

Boer84 | 27.06.2008 at 04:08 PM
Will I be able to importing an external documents to create a new document or to add as a new version to an existing one.

Attachments 3

Image
attachment-wysiwyg-file.png 1.2
PostedBy: VincentMassol on 05/12/2007 (40kb )
Image
attachment-menu.png 1.2
PostedBy: VincentMassol on 05/12/2007 (8kb )
Image
attachment-bottom.png 1.2
PostedBy: VincentMassol on 05/12/2007 (42kb )

Creator: VincentMassol on 2006/12/09 02:12
This wiki is licensed under a Creative Commons license
1.4.1.10194