Forum: Rails France Upload files

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Ralph H. (Guest)
on 2009-03-16 13:48
salut

j'aimerai envoye un fichier lors de mon mail mais je n obtient que le
path kan je recois le mail voila ma forme

<form action="<%= url_for :action =>'send_firstorder', :controller
=>'pages' %>" method="post" >

<b>&nbsp;add your file:</b></td><td style="border:none;"><input
size="30" name="forder[file]" type="file"><br>

<input type=image value="send" style="border:1px solid #b7b7b7;"><br>

</form>
Jean-Philippe M. (Guest)
on 2009-03-16 14:06
(Received via mailing list)
Ralph H. a écrit :
> size="30" name="forder[file]" type="file"><br>
>
> <input type=image value="send" style="border:1px solid #b7b7b7;"><br>
>
> </form>
Utilise le helper rails pour construire un form, et pense à l'option
multipart :
http://api.rubyonrails.org/classes/ActionView/Help...
Ralph H. (Guest)
on 2009-03-16 15:13
<form action="<%= url_for :action =>'send_firstorder', :controller
=>'pages' %>" method="post" enctype="multipart/form-data" >



<table>

<tr><td>

<b>&nbsp;Файл ZIP-архива:</b></td><td style="border:none;"><input
size="30" name="forder[file]" type="file"><br>



</td></tr></table>

<div id="buttons">

<input type=image value="Вход" src="/i/otpravka.gif" style="border:1px
solid #b7b7b7;"><br>

</div>



</form>


et je n arrive tjrs pas a upload les fichiers
Jean-François Trân (Guest)
on 2009-03-16 15:23
(Received via mailing list)
Le 16 mars 2009 12:48, Ralph a écrit :

> j'aimerai envoye un fichier lors de mon mail mais

Faut le mettre en pièce jointe ?

> je n obtient que le path kan je recois le mail voila ma forme

?

  -- Jean-François.

--
http://twitter.com/underflow_
This topic is locked and can not be replied to.