--- a/src/main/scala/bootstrap/liftweb/Boot.scala Thu May 24 11:19:26 2012 +0200
+++ b/src/main/scala/bootstrap/liftweb/Boot.scala Wed May 30 22:51:02 2012 +0200
@@ -20,10 +20,13 @@
import fis.aaa.model._
import fis.aaa.ui._
import fis.crm.ui._
+import fis.fs.lib._
+import fis.fs.model._
import fis.geo.ui._
import fis.pm.ui._
import fis.sr.ui._
import fis.db.SquerylTxMgr
+import java.io.File
import net.datatables.DataTables
import net.liftweb.common._
import net.liftweb.http._
@@ -78,6 +81,17 @@
/* Language */
LangSwitcher.init()
LiftRules.localeCalculator = { _ => CurLanguage.get }
+
+ /* Attachment */
+ for {
+ dn <- Props get "dir.attachment"
+ } {
+ val r = new FileSystemAttachmentStore(new File(dn))
+ Attachment.repo.default.set(Vendor(Full(r)))
+ LiftRules.maxMimeSize = 80 * 1024 * 1024
+ LiftRules.maxMimeFileSize = 70 * 1024 * 1024
+ }
+
}
}