On Mar 16, 11:45 am, Ralph Herve
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:> Hi!!!
> i''m trying to send file via mails but i can get it work
> this is my form
>
The form encoding needs to be set to multipart (see the form helpers
guide on guides.rubyonrails.org)
Fred> <form action="<%= url_for :action
=>''send_firstorder'', :controller
> =>''pages'' %>" method="post" >
>
> <b> 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>
>
> when i''m receiving the mail i can see only the path of file for
exple
> C:\image.gif
>
> but i want to send the file itself
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---