I'm trying to figure out which of these parameters contains an uploaded file. This code works
params[:upload].each do | uploaded_image |
if (uploaded_image[1] != "")
# do something with uploaded_image[1];
end
end
but my way of moving through the parameters (with the [1], for instance) seems wrong. What's the right way to do this?