laravel upload image in google app engine -



laravel upload image in google app engine -

i trying upload images in laravel 4. locally works, upload image , save path in database, problem when deploy google app engine doesn't works. shows error:

symfony \ component \ debug \ exception \ fatalerrorexception phone call fellow member function getclientoriginalextension() on non-object

view

{{ 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() }}

controller

$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();

if seek dd($file) shows null. what's problem here?

gae doesn't allow upload directy files utilize must read first https://developers.google.com/appengine/docs/php/googlestorage/user_upload#createuploadurl_options

google-app-engine file-upload laravel-4

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -