Adding file directory automatically

All fixed!

Had to put in [“david”] to the Hash and its accepted the bid!

Thanks to everyone that helped!

Adam K

I think its because I was setting it to an array without realising. I
was doing

item = cgi.params[‘item’]

so it was stored that way.

I will have a look tomorrow as I am extremely tired!

Thanks though Joel, Really appreciate all the help.

Another alternative would be
item = cgi.params[‘item’][0]
or
item = cgi.params[‘item’].first