> Khue Nguyen wrote:
> 
>Hi all,
>
>I'm new to Slide and try to use Slide as a Web based filemanager to be integrated in 
>a Portal Server.
>Is there any example of how to push a file on the server through the web browser ?


To send the files to the web server, you will have to :

-> For the client :
    Use an html form with an enctype set to multipart/form-data and with
    one (or more) input type='file'

    Example :
    <html>
    <form action='...' method='post' enctype='multipart/form-data'>
    <input type='file' name='file1'><br>
    <input type='file' name='file2'><br>
    <input type='submit'>
    </form>
    </html>

-> For the server :
    Write or use a class that deals with multipart requests.
    You can find a good example at http://www.servlets.com/cos/ but to 
be
    allowed to use it, all developpers in your company must buy the
    lastest edition of the book Java Servlet Programming from OReilly.

JP


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to