Laravel错误与上传dropzone

时间:2014-12-09 22:43:24

标签: laravel upload

我有这段代码:

 public function getUpload()
{
    return View::make('foto/upload');
}

public function postUpload()
{
   $file = Input::file('file');
   $filename = $file->getClientOrginalName();
   $path = 'uploads';
   return $file->move($path, $filename);
}

此处观点:

{{Form::open(array('url' => 'foto/upload', 'class' => 'dropzone'))}}

{{表格::接近()}}

上传后,显示'X',但我怎么能显示这个错误?或者我应该解决什么?

1 个答案:

答案 0 :(得分:-1)

你有一个错字。它是" getClientOrIginalName"