Skip to content

Instantly share code, notes, and snippets.

@jsmitka
Created August 10, 2010 19:14
Show Gist options
  • Save jsmitka/517808 to your computer and use it in GitHub Desktop.
Save jsmitka/517808 to your computer and use it in GitHub Desktop.
<?php
public function loadHttpData()
{
$name = $this->getName();
if (isset($this->getForm()->httpData[$name])) {
if (isset($this->getForm()->httpData[$name]['token'])) {
$this->token = $this->getForm()->httpData[$name]['token'];
$this->files = self::getTempStorage()->getFileList($this->token);
}
if (count($this->files) == NULL && $this->getForm()->httpData[$name]['files'][0] instanceof HttpUploadedFile)
$this->files = $this->getForm()->httpData[$name]['files'];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment