Uploading file to SD card from web page.

It's just a basic HTML form:

client.println("<form method=\"PUT\" action=""upload"">");
  client.println("File to upload: <input type=""file"" />");
  client.println("<input type=""submit"" value=""Upload"" />");
  client.println("</form>");

What I am stuck with is how to pass the selected file to the arduino. All this does is open a file select window, it's the next bit I can't seem to work out.

The action="upload" is just a place holder. This is where I need to put in the code to stream the file to the arduino.

Thanks,

Steve