Christophe Lombart wrote:
> I'm building a velocity template used to upload any files.
> This template is exactly the same as the example screen 'FileUploadForm'. My
> submit button call another template file & the example action class
> 'UploadFile.java'. When I submit my 'FileUploadFom.vm', my selected file is
> not uploaded into my server directory. this directory is still empty.
> In my turbine.properties, I defined the prop.
> 'service.TurbineUploadService.repository=c:\upload'
> I didn't change the class name assigned to the upload service.
In the default configuration, small files (smaller that 10kB) are stored
in the server's memory. You can grab them using
ParameterParser.getFileItem(String key)
method. Then, use the methods in FileItem to get to the data.
If you want the files to be always stored in the temporary directory,
set the
services.TurbineUploadService.size.threshold configuration option to 0.
then you could use FileItem.getStoreLocation() to acquire java.io.File
object
pointing to the uploaded file.
Rafal
--
Rafal Krzewski
Senior Internet Developer
mailto:[EMAIL PROTECTED]
+48 22 8534830 http://e-point.pl
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]