# ModPorter - problems accessing the hash

**URL:** <https://www.ruby-forum.com/t/modporter-problems-accessing-the-hash/175350>\
**Category:** Rails\
**Created:** [September 11, 2009, 6:02pm UTC](https://www.ruby-forum.com/t/modporter-problems-accessing-the-hash/175350 "2009-09-11T18:02:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [September 11, 2009, 6:02pm UTC](https://www.ruby-forum.com/t/modporter-problems-accessing-the-hash/175350/1 "2009-09-11T18:02:07Z")

</div>

I’m trying to set up an upload interface to use mod\_porter, however I  
can’t seem to read the hash that it hands off to the rails method.

It seems like I should be able to access the hash content using params  
[:file][:data][:filename] and params[:file][:data][:path] etc…

But it throws an error saying:

undefined method `[]’ for #\<ModPorter::UploadedFile: … \>

What am I doing wrong?

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [September 12, 2009, 9:53pm UTC](https://www.ruby-forum.com/t/modporter-problems-accessing-the-hash/175350/2 "2009-09-12T21:53:07Z")

</div>

Nobody?

Ok maybe I’m asking the wrong question:

Has Rack come up with a way to handle uploads in a way that scales  
well without emptying the rails thread pool so that nobody is even  
using mod\_porter?
