I just tested the MimeTypeGuesser and one of it's requirements is that the file exists at that moment. In this case we need the content type before passing it to the write method so the file doesn't exist. So i get a FileNotFoundException if i replace that with the symfony component.