# File upload Routing problem

**URL:** <https://www.ruby-forum.com/t/file-upload-routing-problem/152183>\
**Category:** Rails\
**Created:** [October 30, 2008, 10:05pm UTC](https://www.ruby-forum.com/t/file-upload-routing-problem/152183 "2008-10-30T22:05:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hangingclowns](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/b5e925/32.png) [@hangingclowns](https://www.ruby-forum.com/u/hangingclowns)\
**Post date:** [October 30, 2008, 10:05pm UTC](https://www.ruby-forum.com/t/file-upload-routing-problem/152183/1 "2008-10-30T22:05:55Z")

</div>

I have the following upload form:

\<% form\_for @product\_datum, :url =\> { :action =\> :create }, :html =\> {  
:multipart =\> true } do |form| %\>

…

\<%= form.file\_field :uploaded\_data%\>

\<%= form.submit “Upload” %\>

In my controller I have a

def create  
…  
end

For some reason when the user clicks submit, it routes as a GET and  
sends them to the controller’s “index” function. I had this working fine  
a few days ago, but I am lost as to figuring out why the routing is now  
messed up.

Thanks

---

<div class="post-metadata">

**Author:** ![hangingclowns](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/b5e925/32.png) [@hangingclowns](https://www.ruby-forum.com/u/hangingclowns)\
**Post date:** [November 3, 2008, 8:11pm UTC](https://www.ruby-forum.com/t/file-upload-routing-problem/152183/2 "2008-11-03T20:11:03Z")

</div>

Still having issues. Funny this is if I deploy on a different host  
uploading works fine.
