curationexperts/sufia — pull request #8 by jeremyf (2013-01-21 17:16:16+00:00)
Title: Updating file detection on upload

When updating to Hydra 5.3 for Sufia (I don't know if this is Hydra 5.3 or a JS update), I noticed our installation was
sending the following params:

```
{:files => ["","", ]}
```

instead of the expected:

```
{:files => []}
```

I've updated how the file is extracted from the params[:file]. I have
also added the :unprocessable_entity status as that is a more customary
HTTP status on failure (for javascript requests sending 200 status when
there is an error may confuse the javascript client listening to the
request)