php - mime type not found for file upload in Symfony functional test -


When I run my functional test through symphony, the uploaded file is not being provided with the mime type is.

Shows my test case:

  $ Browser-> Information ('1 - Upload Upload Form') - & gt; ('/ Formpage') - & gt; SetField ('myform [file]', sfConfig :: get ('sf_upload_dir'). '/ Example.doc') - & gt; Click ('input [type = submit]') -> End ;  

and is executed on the command line like this:

 . / Symfony test: functional frontend upload  

given output:

  array ([name] => example.doc [type] => ; [Tmp_name] => /.../web/uploads/example.doc [error] => [[size] => 15360)  

Why not Mime type given? Is there any way to insert mime type?

information

If you know the error then to clear it before trial try. Use this way.

  $ filename. $ Extension; $ Extension = $ file - & gt; GetExtension ($ file - & gt; getOriginalExtension ());  

Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -