Forum: Ruby on Rails File field

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.
Ahmad A. (Guest)
on 2006-01-15 07:38
(Received via mailing list)
I have a very simple form with only an Input of type file
<%= file_field "image", "file" %>

whenever I choose a file and click on "Create"

I get the following error "No such file or directory"

checking the parameters values show that a slash has been added to the
file path and name

the file I chose = C:\1.jpg

what Rails is telling me it couldn't find C:\\1.jpg

Why is this? and whats the solution? Platform is
Windows\MySQL\Ruby1.8.2\Rails1.0
This topic is locked and can not be replied to.