You can use Ethereal or Proxomitron to see how browsers post files and how your program does this. You will probably have to use QHttpRequestHeader to set proper content type.