> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 11, 2000 4:02 AM
> To: [EMAIL PROTECTED]
> Subject: File Upload and Download
> 
> Hi,
> I want to use turbine to allow users to upload a file to the 
> server and 
> make this available for other users to download.
> 
> I last time I looked at Turbine it used the O'Reilly 
> uploader, and I could 
> store my files on the filesystem and users could download them OK.
> 
>  I'm having difficulty understanding how the new system  works/ is 
> configured.
> 
> Could someone give me a quick explanation as to how it works 
> and should be 
> configured to enable me to acheive the aims mentioned above?

Actually it is a little easier.  You can have turbine now upload 
directly without creating an action to perform the upload (You can still
create your own action for the upload if you want).  Search the mail
archives 
for more details.
 
Below are relevalent parts from TR properties:
    # From the services section
 
services.TurbineUploadService.classname=org.apache.turbine.services.upload.T
urbineUploadService

    # Upload service configuration
    # wheter the files should be automaticaly picked up by ParameterParser
    services.TurbineUploadService.automatic=true

    # the directory where files will be temporarily stored
    services.TurbineUploadService.repository=/home/web/images

    # the maximum size of a request that will be processed
    services.TurbineUploadService.size.max=1048576

    # the maximum size of a request that will have it's elements cached in
memory
    # by TurbineUploadService class
    services.TurbineUploadService.size.threshold=10240

> What does this do :
> 
> # This is the file server where files will be uploaded for 
> # mulipart/form-data requests
> # Default: none
> #file.server=

It is not used by the uploader service.  It is used by the mail utility
classes only.  I know, its confusing.

> Can I no longer just upload to my servers file system?

If you want to use the O'Reilly uploader change the
services.TurbineUploadService.classname to the oreilly service class in the
org.apache.turbine.services.upload package.
 
> Also how do I download a file using the new system? 

Shouldn't have changed.  There are samples ( ImageServer, RawScreen, etc. )
or just use the web server and serv the files up.


------------------------------------------------------------------------

This message has been scanned for viruses with Trend Micro's Interscan VirusWall.


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to