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.
E928c13a99447cf822052b514f14e109?d=identicon&s=25 Ralph Herve (tanker)
on 2009-03-16 12: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
81b61875e41eaa58887543635d556fca?d=identicon&s=25 Frederick Cheung (Guest)
on 2009-03-16 14:11
(Received via mailing list)
On Mar 16, 11:45 am, Ralph Herve <rails-mailing-l...@andreas-s.net>
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.