Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Turbine Wiki" for 
change notification.

The "Turbine4/Turbine4.0M1/Migrate233" page has been changed by ThomasVandahl:
http://wiki.apache.org/turbine/Turbine4/Turbine4.0M1/Migrate233?action=diff&rev1=7&rev2=8

Comment:
Added UploadService

      <cache cacheInitialSize="20" cacheCheckFrequency="5"/>
  }}}
  
+ === UploadService ===
+ 
+ The !TurbineUploadService has been replaced with the 
[[http://turbine.apache.org/fulcrum/fulcrum-upload/|Fulcrum Upload]] 
counterpart. The following example shows the default configuration of the 
''!UploadService'' before and after the migration. For details of the 
configuration options available see the 
[[http://turbine.apache.org/fulcrum/fulcrum-upload/|Fulcrum Upload Site]].
+ 
+ `TurbineResources.properties`:
+ 
+ {{{
+ 
services.UploadService.classname=org.apache.turbine.services.upload.TurbineUploadService
+ 
+ # -------------------------------------------------------------------
+ #
+ #  U P L O A D  S E R V I C E
+ #
+ # -------------------------------------------------------------------
+ 
+ # Whether the files should be automatically picked up by
+ # ParameterParser.
+ 
+ services.UploadService.automatic=true
+ 
+ #
+ # The directory where files will be temporarily stored.
+ #
+ services.UploadService.repository=./tmp
+ 
+ #
+ # The maximum size of a request that will be processed.
+ #
+ services.UploadService.size.max=1048576
+ 
+ #
+ # The maximum size of a request that will have it's elements cached in
+ # memory by TurbineUploadService class.
+ #
+ services.UploadService.size.threshold=10240
+ }}}
+ 
+ `roleConfiguration.xml`:
+ 
+ {{{#!xml
+     <role
+         name="org.apache.fulcrum.upload.UploadService"
+         shorthand="upload"
+         default-class="org.apache.fulcrum.upload.DefaultUploadService"/>
+ }}}
+ 
+ `componentConfiguration.xml`:
+ 
+ {{{#!xml
+     <upload repository="tmp" sizeMax="1048576" sizeThreshold="10240"/>
+ }}}
+ 

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to