Forum: Ruby on Rails file upload

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:45
Hi!!!
i'm trying to send file via mails but i can get it work
this is my form

<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>

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
Frederick C. (Guest)
on 2009-03-16 15:11
(Received via mailing list)
On Mar 16, 11:45 am, Ralph H. <removed_email_address@domain.invalid>
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
This topic is locked and can not be replied to.