milesj / uploader

[Deprecated] A CakePHP plugin for file uploading and validating.
MIT License
193 stars 73 forks source link

Sending array to File() which spects string #153

Closed ogabrielsantos closed 11 years ago

ogabrielsantos commented 11 years ago

FileValidationBehavior.php line 405

if (is_array($value)) {
                $file = new File($value);

Transit\File line 35

/**
 * Store the file path.
 *
 * @access public
 * @param string $path
 * @throws \Transit\Exception\IoException
 */
public function __construct($path) {
        // Some codes here
}
milesj commented 11 years ago

Transit doesn't require a string: https://github.com/milesj/transit/blob/master/src/Transit/File.php#L44

You may need to update your code.

ogabrielsantos commented 11 years ago

It seens that composer does not update and reflect to current repository. Is this correct?

milesj commented 11 years ago

Try clearing your composer cache or your vendors folder then running composer update again.

ogabrielsantos commented 11 years ago

Now all is fine.; Thanks.