Changes for page Attachments

Last modified by Thomas Mortagne on 2023/10/10

<
From version < 9.1 >
edited by AdrianFita
on 2012/02/21
To version < 9.2 >
edited by Vincent Massol
on 2012/02/21
>
Change comment: Made the explanation less lyric...

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.AdrianFita
1 +XWiki.VincentMassol
Content
... ... @@ -55,9 +55,9 @@
55 55  
56 56  === Filesystem attachment store location ===
57 57  
58 -The directory in which the attachments are stored in the filesystem is defined with the parameter ##xwiki.work.dir## in the ##xwiki.cfg## file. You'll find it right at the end of the file. By default it's defined to just "data", which means the effective directory location in the filesystem will be created with the name //data// and will be relative to the directory from which the Java application server (Apache Tomcat) was started. This would generate a **very confusing behaviour** in which, depending from where you start Tomcat, xwiki may or may not be able to locate the attachments and deliver them to you. For example, if you start Tomcat from ##/opt/tomcat6##, xwiki's attachments directory is ##/opt/tomcat6/data##; if you start Tomcat from ##/opt/tomcat6/bin##, xwiki's attachments directory is ##/opt/tomcat6/bin/data##, and so on.
58 +The directory in which the attachments are stored in the filesystem is defined with the parameter ##xwiki.work.dir## in the ##xwiki.cfg## file. By default it's defined to be ##data##, which is a directory relative to where the Java Servlet Container was started. It's recommend to modify this value to be absolute so that you can start the Servlet Container from any directory and still have XWiki find the attachments located in this work directory.
59 59  
60 -You'll want to define an absolute path(!!) for ##xwiki.work.dir##. Example:
60 +For example:
61 61  
62 62  {{code}}
63 63  xwiki.work.dir=/opt/tomcat6/data

Get Connected