Configuring upload limits
Daisy has no arbitrary limits on the size of the document parts, the eventual limits are the available disk space, file system limitations, and the java.lang.Long.MAX_VALUE value.
However, the Daisy Wiki and the Daisy Repository Server have configurable limits of how much data one is allowed to upload. For the Daisy Wiki, this is by default 10 MB, for the Repository Server, this is by default 400 MB.
The Daisy Wiki limitation can be configured in the file daisywiki/webapp/WEB-INF/web.xml, search for upload-max-size.
The Repository Server limit is configurable via the <daisydata-dir>/conf/myconfig.xml file, by including a section like this:
<target path="/daisy/repository/httpconnector"> <configuration> <upload> <!-- threshold beyond which files are directly written to disk (in bytes) --> <threshold>50000</threshold> <!-- Maximum upload size (in bytes), -1 for no maximum --> <maxsize>400000000</maxsize> <!-- Location for temporary upload files, default java.io.tmpdir --> <!-- tempdir></tempdir --> </upload> </configuration> </target>
Note that when uploading a file via the Daisy Wiki, you might need up to three times the size of the file available on disk: first the file is uploaded to the Daisy Wiki which uses a temporary file to store it, then Daisy Wiki uploads it to the repository server, which again uses a temporary file to store it, and finally the repository server stores the file in its "blobstore".



There are no comments.