You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Lionel Crine <cr...@4dconcept.fr> on 2003/05/23 12:34:40 UTC

Correction : Re: input type="file"

SOrry input type"file"


At 12:21 23/05/2003 +0200, you wrote:
>Hi,
>
>
>I want to send some picture to a cocoon server from a client computer via 
>an <input  type="file"> element in a form.
>
>The input element is a good way to do that ?
>Is there a generator which get the value from the input.
>Is requestgenerator able to do that ?
>
>Thanks
>
>
>
>Lionel CRINE
>Société : 4DConcept
>22 rue Etienne de Jouy 78353 JOUY EN JOSAS
>Tel : 01.34.58.70.70 Fax : 01.39.58.70.70
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
>For additional commands, e-mail: cocoon-users-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Re: Correction : Re: input type="file"

Posted by Lionel Crine <cr...@4dconcept.fr>.
I use cocoon 2.0.4 and there no section for the upload.

But what I want to do is to get the picture from the client and store it 
into an XML database.



At 13:02 23/05/2003 +0200, you wrote:
>Lionel Crine wrote:
>
>>SOrry input type"file"
>>
>>
>>At 12:21 23/05/2003 +0200, you wrote:
>>
>>>Hi,
>>>
>>>
>>>I want to send some picture to a cocoon server from a client computer 
>>>via an <input  type="file"> element in a form.
>(1) in the HTML form something like this
>
><input name="pdf" type="file" id="pdf" size="50" maxlength="500">
>
>(2) check the cocoon.xconf file, there are sections dealing with the 
>upload. it is self-explaining. you have to uncomment those sections, then 
>cocoon automatically accepts the file upload and stores it in the desired 
>directory
>
>(3) the third point is maybe the most difficult: I try to move the file 
>from there to the desired directory, and enter the filename into the database.
>
>
>alex
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
>For additional commands, e-mail: cocoon-users-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Re: Correction : Re: input type="file"

Posted by Alexander Schatten <al...@gmx.at>.
Lionel Crine wrote:

> SOrry input type"file"
>
>
> At 12:21 23/05/2003 +0200, you wrote:
>
>> Hi,
>>
>>
>> I want to send some picture to a cocoon server from a client computer 
>> via an <input  type="file"> element in a form.
>>
(1) in the HTML form something like this

<input name="pdf" type="file" id="pdf" size="50" maxlength="500">

(2) check the cocoon.xconf file, there are sections dealing with the 
upload. it is self-explaining. you have to uncomment those sections, 
then cocoon automatically accepts the file upload and stores it in the 
desired directory

(3) the third point is maybe the most difficult: I try to move the file 
from there to the desired directory, and enter the filename into the 
database.


alex



---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org