Google app engine laravel在谷歌应用程序引擎中上传图像
我正在尝试上传Laravel4中的图像。在本地,它可以工作,上传图像并将路径保存在数据库中,但问题是,当使用google app engine部署时,它无法工作。它显示了这个错误: Symfony\Component\Debug\Exception\FatalErrorException调用 非对象上的成员函数getClientOriginalExtension 看法 如果我尝试dd$文件,它将显示NULL。Google app engine laravel在谷歌应用程序引擎中上传图像,google-app-engine,file-upload,laravel-4,Google App Engine,File Upload,Laravel 4,我正在尝试上传Laravel4中的图像。在本地,它可以工作,上传图像并将路径保存在数据库中,但问题是,当使用google app engine部署时,它无法工作。它显示了这个错误: Symfony\Component\Debug\Exception\FatalErrorException调用 非对象上的成员函数getClientOriginalExtension 看法 如果我尝试dd$文件,它将显示NULL。 这里有什么问题?gae不允许您上载directy文件,但用户必须先阅读此文件 {{ F
这里有什么问题?gae不允许您上载directy文件,但用户必须先阅读此文件
{{ Form::model($v, array('files' => true,'route' => array('upload.image', $v->id),'method' => 'post','class'=>'form-horizontal','id'=>'upload-images')) }}
{{ Form::file('image') }}
<br>
{{ Form::submit('Add Photo', array('class' => 'btn btn-primary' )) }}
{{ Form::close() }}
$file = Input::file('image');
$destinationPath = 'img_gallery/';
$extension = $file->getClientOriginalExtension();
$filename = 'img_' . $id . '.' . $extension;
$file->move($destinationPath, $filename);
$car = Car::find($id);
$car->Pic = $filename;
$car->save();