# File upload problem

**URL:** <https://www.ruby-forum.com/t/file-upload-problem/176624>\
**Category:** Rails\
**Created:** [October 3, 2009, 12:45pm UTC](https://www.ruby-forum.com/t/file-upload-problem/176624 "2009-10-03T12:45:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![prem](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/8797f3/32.png) [@prem](https://www.ruby-forum.com/u/prem)\
**Post date:** [October 3, 2009, 12:45pm UTC](https://www.ruby-forum.com/t/file-upload-problem/176624/1 "2009-10-03T12:45:59Z")

</div>

Hi,

```
          I want to upload a file using rails.i am using

```

file\_field and unable to access the input from form(rails view) in  
controller, i.e. in parameters it is not sending the file\_field input  
and it is sending if there are any other type of inputs,except  
file\_field.

```
         Can anybody tellme, What datatype exactly file_field

```

takes and how to upload a file using rails?

```
        Thanks in advance.

```

prem.

---

<div class="post-metadata">

**Author:** ![prem](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/8797f3/32.png) [@prem](https://www.ruby-forum.com/u/prem)\
**Post date:** [October 4, 2009, 2:00am UTC](https://www.ruby-forum.com/t/file-upload-problem/176624/2 "2009-10-04T02:00:52Z")

</div>

did you set :multipart =\> true ?
