Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

1
  • 1
    @Hovo first of all you're still using the wrong key here; $this->data['posts']['doc_file']['tmp_name'], which should be $this->data['Post']['doc_file']['tmp_name']. However, the problem you're seeing is caused because you're trying to use $this->data['Post']['doc_file'] as value for the 'doc_file' field in your database, but because this is an array, this won't work directly. You'll have to change that data and only use the file-name for your database. I'll try to add an example Commented May 1, 2013 at 7:06