Doesn't this need to be changed to:

```php
$data = new PostFile($field, $filename, $contentType, $postname);
```