Upload a file into gridFS using sinatra